Switch a test from using a Mozilla-specific name for a constant to using the standard one, no semantic change. r=foopy
authorjwalden@mit.edu
Wed, 12 Mar 2008 13:43:09 -0700
changeset 12961 c27cd9e79df3274f3dcfd1d77a8e7b2856b9fcb0
parent 12960 c2b043d8e547d71c264f14bf9fb2f972d6b46de4
child 12962 9c60039bfe989c9fe1736520ea32ced16dab0b86
push idunknown
push userunknown
push dateunknown
reviewersfoopy
milestone1.9b5pre
Switch a test from using a Mozilla-specific name for a constant to using the standard one, no semantic change. r=foopy
content/base/test/test_bug338541.xhtml
--- a/content/base/test/test_bug338541.xhtml
+++ b/content/base/test/test_bug338541.xhtml
@@ -17,17 +17,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 /** Test for Bug 338541 **/
 function getName(aNode, f)
 {
   return (aNode ? aNode.nodeName : "(null)");
 }
 
 function walkDOM()
 {
-  var walker = document.createTreeWalker($('content'), Components.interfaces.nsIDOMNodeFilter.SHOW_ELEMENT, null, true);
+  var walker = document.createTreeWalker($('content'), NodeFilter.SHOW_ELEMENT, null, true);
   var output = "";
   while (walker.nextNode())
   {
     output += getName(walker.currentNode) + "\n";
   }
   output += "Final currentNode: " + getName(walker.currentNode);
   is(output, "foo\nbar\nhtml:b\nqux\nbaz\nFinal currentNode: baz","treewalker returns correct nodeName");
   SimpleTest.finish();