add:  var yahoo = document.getElementById("test2").getElementsByTagName("a")[1]; assertNull(eventManager.getAttributesXPathLocator(yahoo, pageBot)); 
context: function testAttributesXPathLocator() {	var elements = document.getElementById("test1").getElementsByTagName("input");	var pageBot = eventManager.getPageBot(window);	assertEquals("//input[@name='foo']", eventManager.getAttributesXPathLocator(elements[0], pageBot));	assertEquals("//input[@name='foo' and @value='bar' and @type='button' and @onclick=\"alert(\'test\')\"]", eventManager.getAttributesXPathLocator(elements[1], pageBot));	assertEquals("//input[@name='foo' and @value='bar' and @type='button' and @onclick=\'alert(\"test2\")\']", eventManager.getAttributesXPathLocator(elements[2], pageBot));	assertEquals("//input[@name='foo' and @value='bar' and @type='button' and @onclick=concat(\"alert('test3'\, \",'\"test4\")')]", eventManager.getAttributesXPathLocator(elements[3], pageBot));	assertNull(eventManager.getAttributesXPathLocator(elements[4], pageBot));}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/4f08e58d98f8f98a7f1612587fa44323e01e45e9/eventManager-tests.js/buggy/src/content/tests/eventManager-tests.js