| Index: LayoutTests/editing/selection/containsNode.html
|
| diff --git a/LayoutTests/editing/selection/containsNode.html b/LayoutTests/editing/selection/containsNode.html
|
| index 3c16b67eefb7a60e6b619cc1727a9ef08b91adb0..4d50873f8f34df89ff41beeabcb132f7a5e62de3 100644
|
| --- a/LayoutTests/editing/selection/containsNode.html
|
| +++ b/LayoutTests/editing/selection/containsNode.html
|
| @@ -23,6 +23,15 @@ function shouldBe(expr, expected) {
|
| log("Success: " + expr + " is " + expected + ".");
|
| }
|
|
|
| +function shouldThrow(expr) {
|
| + try {
|
| + eval(expr);
|
| + log("Failure: " + expr + " didn't raise an exception" + ".");
|
| + } catch (ex) {
|
| + log("Success: " + expr + " raised " + ex + ".");
|
| + }
|
| +}
|
| +
|
| if (window.testRunner)
|
| testRunner.dumpAsText();
|
|
|
| @@ -33,8 +42,8 @@ r.setStart(span1, 1);
|
| r.setEnd(span1, 2);
|
| s.addRange(r);
|
|
|
| -shouldBe('s.containsNode(null, false)', false);
|
| -shouldBe('s.containsNode(null, true)', false);
|
| +shouldThrow("s.containsNode(null, false);");
|
| +shouldThrow("s.containsNode(null, true);");
|
| shouldBe('s.containsNode(testDiv, false)', false);
|
| shouldBe('s.containsNode(testDiv, true)', true);
|
| shouldBe('s.containsNode(span1, false)', false);
|
|
|