Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / SelectorAPI / unknown-pseudo.html
blob05dcd08a0cdcfabd978ce450fb3faf36b250eee1
1 <pre id="console"></pre>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
6 function log(msg)
8 document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
11 function shouldThrow(_a)
13 try {
14 eval(_a);
15 log("FAIL: " + _a + " did not throw");
16 } catch(ex) {
17 log("PASS: " + _a + " throws: " + ex);
21 shouldThrow("document.querySelector(:unknownpseudo)");
22 shouldThrow("document.querySelector(:-webkit-any(:unknownpseudo))");
23 </script>