Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / Range / resources / intersectsNode.js
index c10898a..c6c523c 100644 (file)
@@ -95,8 +95,7 @@ debug("");
 debug("2.1 Detached Range, attached node");
 var detachedRange = document.createRange();
 detachedRange.detach();
-intersects = detachedRange.intersectsNode(document.getElementById("a1"));
-shouldBeFalse("intersects");
+shouldThrow("detachedRange.intersectsNode(document.getElementById('a1'))", '"Error: INVALID_STATE_ERR: DOM Exception 11"');
 debug("");
 
 debug("2.2 attached range, detached node");
@@ -143,5 +142,5 @@ var node = null;
 shouldThrow("range.intersectsNode(node)");
 debug("");
     
-if (window.layoutTestController)
-    layoutTestController.dumpAsText();
+if (window.testRunner)
+    testRunner.dumpAsText();