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

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

Issue 685623002: Move the tests from .html to .sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/scrollbar.sky ('k') | sky/tests/lowlevel/style-basic.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/lowlevel/style-basic.html
diff --git a/sky/tests/lowlevel/style-basic.html b/sky/tests/lowlevel/style-basic.html
deleted file mode 100644
index 5b9d2d162c8e2ceb0472763c5938621ba19fc161..0000000000000000000000000000000000000000
--- a/sky/tests/lowlevel/style-basic.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-<link rel="import" href="../resources/dump-as-text.html" />
-<style>
- #id1 { order: 1; }
- .class2 { order: 2; }
- tag-name-3 { order: 3; }
- .class4.class4 { order: 4; }
- .class5#id5 { order: 5; }
- tag-name-6.class6#id6 { order: 6; }
-</style>
-<body>
- <div id="tests">
- <div id="id1"></div>
- <div class="class2"></div>
- <tag-name-3></tag-name-3>
- <div class="class4 class4"></div>
- <div class="class5" id="id5"></div>
- <tag-name-6 class="class6" id="id6"></tag-name-6>
- </div>
- <div id="log"></div>
- <script>
- 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;
- var div = document.createElement("div");
- var text = (order == i) ? "PASS" : "FAIL";
- text += ": <"
- + element.tagName
- + " class="
- + element.classList
- + " id=" + element.id
- + "> order was "
- + order;
- if (order != i)
- text += " expected " + i;
- div.textContent = text;
- log.appendChild(div);
- }
- </script>
-</body>
-</html>
« no previous file with comments | « sky/tests/lowlevel/scrollbar.sky ('k') | sky/tests/lowlevel/style-basic.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698