OLD | NEW |
---|---|
(Empty) | |
1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:foo="http://foo.com"> | |
2 <body> | |
3 <div class="target"/> | |
4 <foo:div class="target"/> | |
5 <p id="log"></p> | |
6 <script type="text/javascript"> | |
7 if (window.testRunner) | |
Inactive
2014/08/15 18:38:57
Could you use js-test.js?
| |
8 testRunner.dumpAsText(); | |
9 | |
10 function log(msg) | |
11 { | |
12 document.getElementById('log').appendChild(document.createTextNode(msg + '\n')); | |
13 } | |
14 | |
15 if (document.getElementsByClassName("target").length == 2) { | |
16 log("PASS"); | |
17 } else { | |
18 log("FAIL"); | |
19 } | |
20 </script> | |
21 </body> | |
22 </html> | |
OLD | NEW |