Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.xml

Issue 458663003: getElementsByClassName should include non styled Elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698