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

Unified Diff: test/data/input/css_main_test.html

Issue 12474002: Support for parsing all CSS and producing one CSS file (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: bumped version Created 7 years, 9 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: test/data/input/css_main_test.html
diff --git a/test/data/input/css_main_test.html b/test/data/input/css_main_test.html
index e6d11f2bdd5b245c89bef307788a1139845752c6..bc8c4ba6367df864e025b50383b01980b916ebe2 100644
--- a/test/data/input/css_main_test.html
+++ b/test/data/input/css_main_test.html
@@ -8,7 +8,9 @@ BSD-style license that can be found in the LICENSE file.
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <link rel="stylesheet" href="resources/base.css">
<link rel="components" href="css_comp1.html">
+ <link rel="stylesheet" href="root.css">
<script type="application/javascript" src="testing.js"></script>
<title>CSS Polyfill Test</title>
</head>
@@ -43,7 +45,8 @@ BSD-style license that can be found in the LICENSE file.
width: 300px;
}
</style>
- <div id="box-1">
+ <div id="box-1" class="main-glyph">
+ <div class="left-glyph"></div>
<input class="comp-1-input" value="Test AAA">
</div>
<input class="comp-1-done" value="Test BBB">
@@ -60,6 +63,17 @@ main() {
useShadowDom = false;
Timer.run(() {
+ // URI to image in base input directory
+ var items = queryAll('#box-1');
+ DivElement box1Elem = items[0];
+ var image1 = box1Elem.getComputedStyle().backgroundImage;
+ expect(image1.endsWith('/input/main.png)'), true);
+
+ // URI to image in directory input/resources
+ DivElement box2Elem = box1Elem.children[0];
+ var image2 = box2Elem.getComputedStyle().backgroundImage;
+ expect(image2.endsWith('/input/resources/glyph.png)'), true);
+
window.postMessage('done', '*');
});
}

Powered by Google App Engine
This is Rietveld 408576698