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

Unified Diff: sky/tests/lowlevel/bug-438036.sky

Issue 785313002: Fix id/class collection from stylesheets (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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/engine/core/css/RuleFeature.cpp ('k') | sky/tests/lowlevel/bug-438036-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/lowlevel/bug-438036.sky
diff --git a/sky/tests/lowlevel/bug-438036.sky b/sky/tests/lowlevel/bug-438036.sky
new file mode 100644
index 0000000000000000000000000000000000000000..0ff4d27859236cc88ca17883912931930091e297
--- /dev/null
+++ b/sky/tests/lowlevel/bug-438036.sky
@@ -0,0 +1,29 @@
+<sky>
ojan 2014/12/09 23:31:16 I don't like this file naming scheme. It was alway
+<import src="../resources/mocha.sky" />
+<import src="../resources/chai.sky" />
+<style>
+ div { width: 100px; height: 100px; background-color: red; }
+ div.wide { width: 200px; }
+ div#high { height: 200px; }
+</style>
+<div></div>
+<div></div>
+<script>
+
+describe("Div width", function() {
+ it("should grow width to 200px", function() {
+ var target = document.querySelector('div');
+
+ target.classList.add("wide");
+ assert.equal(getComputedStyle(target).width, "200px");
+ });
+
+ it("should grow height to 200px", function() {
+ var target = document.querySelectorAll('div')[1];
+
+ target.id = 'high';
+ assert.equal(getComputedStyle(target).height, "200px");
+ });
+});
+</script>
+</sky>
« no previous file with comments | « sky/engine/core/css/RuleFeature.cpp ('k') | sky/tests/lowlevel/bug-438036-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698