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

Unified Diff: LayoutTests/inspector/elements/styles/style-rule-from-imported-stylesheet.html

Issue 313083005: DevTools: Show rules from imported stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a test Created 6 years, 6 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/style-rule-from-imported-stylesheet.html
diff --git a/LayoutTests/inspector/elements/styles/styles-overriden-properties.html b/LayoutTests/inspector/elements/styles/style-rule-from-imported-stylesheet.html
similarity index 59%
copy from LayoutTests/inspector/elements/styles/styles-overriden-properties.html
copy to LayoutTests/inspector/elements/styles/style-rule-from-imported-stylesheet.html
index de1154841a9031a3de07da450e78ccd1e6a10ce4..528f5fb9ecd82eac74a32d6050e9b374de657661 100644
--- a/LayoutTests/inspector/elements/styles/styles-overriden-properties.html
+++ b/LayoutTests/inspector/elements/styles/style-rule-from-imported-stylesheet.html
@@ -1,20 +1,13 @@
<html>
<head>
-<style type="text/css">
-#main {
- height: 100px;
- background: #000;
- background: #bada55;
-}
-</style>
-
+<link rel="import" href="resources/imported-stylesheet.html"/>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/elements-test.js"></script>
<script>
function test()
{
- InspectorTest.selectNodeAndWaitForStyles("main", step1);
+ InspectorTest.selectNodeAndWaitForStyles("square", step1);
function step1()
{
@@ -22,16 +15,11 @@ function test()
InspectorTest.completeTest();
}
}
-
</script>
</head>
<body onload="runTest()">
-<p>
-Tests that overriding shorthands within rule are visible.
-</p>
-
-<div id="main"></div>
-
+<p>Tests that rules from imported stylesheets are correctly shown in inspector.</p>
+<div id="square" class="square"></div>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698