OLD | NEW |
---|---|
(Empty) | |
1 <div id="result"></div> | |
2 <script> | |
3 if (window.testRunner) | |
tkent
2014/11/25 22:59:28
Indent the whole content of <script> is not helpfu
| |
4 testRunner.dumpAsText(); | |
5 | |
6 var noException = true; | |
7 try { | |
8 getComputedStyle(null); | |
9 noException = false; | |
tkent
2014/11/25 22:59:28
Please import ../../../resources/js-test.js, and u
| |
10 } catch(e) {}; | |
11 try { | |
12 getComputedStyle(undefined); | |
13 noException = false; | |
14 } catch(e) {}; | |
15 var txtNode = document.createTextNode("foo"); | |
16 try { | |
17 getComputedStyle(txtNode); | |
18 noException = false; | |
19 } catch(e) {}; | |
20 | |
21 document.getElementById("result").innerText = noException ? "PASS" : "FAIL" | |
22 </script> | |
OLD | NEW |