Chromium Code Reviews| Index: LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.xml |
| diff --git a/LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.xml b/LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..718916dfd997d3ae39370f55e9d5ad28df838d6c |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.xml |
| @@ -0,0 +1,22 @@ |
| +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foo="http://foo.com"> |
| +<body> |
| +<div class="target"/> |
| +<foo:div class="target"/> |
| +<p id="log"></p> |
| +<script type="text/javascript"> |
| + if (window.testRunner) |
|
Inactive
2014/08/15 18:38:57
Could you use js-test.js?
|
| + testRunner.dumpAsText(); |
| + |
| + function log(msg) |
| + { |
| + document.getElementById('log').appendChild(document.createTextNode(msg + '\n')); |
| + } |
| + |
| + if (document.getElementsByClassName("target").length == 2) { |
| + log("PASS"); |
| + } else { |
| + log("FAIL"); |
| + } |
| +</script> |
| +</body> |
| +</html> |