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

Unified Diff: LayoutTests/inspector/elements/styles/simple-selector.html

Issue 458213002: DevTools: add test to verify simple selector behavior. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WebInspector.BlankStylePropertiesSection.makeNormal is private 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/inspector/elements/styles/simple-selector.html
diff --git a/LayoutTests/inspector/elements/styles/simple-selector.html b/LayoutTests/inspector/elements/styles/simple-selector.html
new file mode 100644
index 0000000000000000000000000000000000000000..59665ebed826e5f284c9f860a631c7bdcc43d893
--- /dev/null
+++ b/LayoutTests/inspector/elements/styles/simple-selector.html
@@ -0,0 +1,40 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/elements-test.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.expandElementsTree(onElementsTreeExpanded);
+
+ function onElementsTreeExpanded()
+ {
+ var container = InspectorTest.expandedNodeWithId("container");
+ var children = container.children();
+ for (var i = 0; i < children.length; ++i)
+ InspectorTest.addResult(WebInspector.DOMPresentationUtils.simpleSelector(children[i]));
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>Verifies simple selector behavior.</p>
+<div id="container" style="display: none">
+ <div id="foo"></div>
+ <div id="bar" class="foo"></div>
+ <div class="title"></div>
+ <input></input>
+ <input type="text"></input>
+ <input type="text" class="text-input"></input>
+ <input type="text" id="text-input"></input>
+ <p class="article"></p>
+ <span></span>
+ <b></b>
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698