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

Unified Diff: LayoutTests/inspector/elements/styles-4/styles-properties-overload.html

Issue 1320543002: DevTools: simplify & fix property overload logic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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-4/styles-properties-overload.html
diff --git a/LayoutTests/inspector/elements/styles-4/styles-properties-overload.html b/LayoutTests/inspector/elements/styles-4/styles-properties-overload.html
new file mode 100644
index 0000000000000000000000000000000000000000..ece9ff840abcfdea0592b71b838a01ff385b786b
--- /dev/null
+++ b/LayoutTests/inspector/elements/styles-4/styles-properties-overload.html
@@ -0,0 +1,48 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/elements-test.js"></script>
+<style>
+div {
+ margin: 1px;
+ border: 1px solid black;
+}
+
+#inspect {
+ margin-top: 1px;
+ margin-left: 1px;
+ margin-right: 1px;
+ margin-bottom: 1px;
+ font: 10px Arial;
+}
+
+.container {
+ font-size: 10px;
+ border: 0;
+}
+
+</style>
+
+<script>
+
+function test()
+{
+ InspectorTest.selectNodeAndWaitForStyles("inspect", step2);
+
+ function step2()
+ {
+ InspectorTest.dumpSelectedElementStyles(true, false, false);
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>Verifies that inspector figures out overloaded properties correctly.</p>
+<div class="container">
+ <div id="inspect">Text.</div>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698