| This page tests the exception you get when you test a regular expression against |
| the null string. If the test passes, you'll see a PASS message below. |
| document.getElementById("console").appendChild(document.createTextNode(s + "\n")); |
| function shouldBe(a, aDescription, b) |
| log("PASS: " + aDescription + " should be '" + String(b) + "' and is."); |
| log ("FAIL: " + aDescription + " should be '" + String(b) + "' but instead is '" + String(a) + "'."); |
| if (window.layoutTestController) |
| layoutTestController.dumpAsText(); |
| var result = /define/.test(); |
| shouldBe(result, "result", true); |