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

Unified Diff: sky/tests/lowlevel/style-basic.sky

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/tests/lowlevel/query-selector-expected.txt ('k') | sky/tests/lowlevel/style-specificity.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/lowlevel/style-basic.sky
diff --git a/sky/tests/lowlevel/style-basic.sky b/sky/tests/lowlevel/style-basic.sky
index 6d5b7ca24eb771ae422627b4516589d366436826..154dcc8d4d396fd20a1f950bb7a384683a619de8 100644
--- a/sky/tests/lowlevel/style-basic.sky
+++ b/sky/tests/lowlevel/style-basic.sky
@@ -20,25 +20,30 @@
</div>
<div id="log"></div>
<script>
+ import "dart:sky";
+
+ main() {
var tests = document.getElementById("tests");
var log = document.getElementById("log");
var i = 1;
- for (var element = tests.firstElementChild; element; element = element.nextElementSibling, ++i) {
- var order = getComputedStyle(element).order;
+ for (var element = tests.firstElementChild; element != null; element = element.nextElementSibling) {
+ var order = int.parse(window.getComputedStyle(element).getPropertyValue("order"));
var div = document.createElement("div");
var text = (order == i) ? "PASS" : "FAIL";
text += ": <"
+ element.tagName
+ " class="
- + element.classList
+ + element.classList.toString()
+ " id=" + element.id
+ "> order was "
- + order;
+ + order.toString();
if (order != i)
text += " expected " + i;
div.textContent = text;
log.appendChild(div);
+ ++i;
}
+ }
</script>
</body>
</html>
« no previous file with comments | « sky/tests/lowlevel/query-selector-expected.txt ('k') | sky/tests/lowlevel/style-specificity.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698