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

Side by Side Diff: LayoutTests/fast/css/resources/parsing-webkit-font-smoothing.js

Issue 1274643002: CSSStyleDeclaraction returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed changes from imported/csswg-test Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 description("This tests checks that all of the input values for -webkit-font-smo othing parse correctly."); 1 description("This tests checks that all of the input values for -webkit-font-smo othing parse correctly.");
2 2
3 function test(value) 3 function test(value)
4 { 4 {
5 var span = document.createElement("span"); 5 var span = document.createElement("span");
6 span.setAttribute("style", value); 6 span.setAttribute("style", value);
7 document.body.appendChild(span); 7 document.body.appendChild(span);
8 8
9 var result = span.style.getPropertyValue("-webkit-font-smoothing"); 9 var result = span.style.getPropertyValue("-webkit-font-smoothing");
10 document.body.removeChild(span); 10 document.body.removeChild(span);
11 return result; 11 return result;
12 } 12 }
13 13
14 shouldBe('test("-webkit-font-smoothing: auto;")', '"auto"'); 14 shouldBe('test("-webkit-font-smoothing: auto;")', '"auto"');
15 shouldBe('test("-webkit-font-smoothing: none;")', '"none"'); 15 shouldBe('test("-webkit-font-smoothing: none;")', '"none"');
16 shouldBe('test("-webkit-font-smoothing: antialiased;")', '"antialiased"'); 16 shouldBe('test("-webkit-font-smoothing: antialiased;")', '"antialiased"');
17 shouldBe('test("-webkit-font-smoothing: subpixel-antialiased;")', '"subpixel-ant ialiased"'); 17 shouldBe('test("-webkit-font-smoothing: subpixel-antialiased;")', '"subpixel-ant ialiased"');
18 18
19 shouldBe('test("-webkit-font-smoothing: apple;")', 'null'); 19 shouldBeEqualToString('test("-webkit-font-smoothing: apple;")', '');
20 shouldBe('test("-webkit-font-smoothing: 15;")', 'null'); 20 shouldBeEqualToString('test("-webkit-font-smoothing: 15;")', '');
21 shouldBe('test("-webkit-font-smoothing: auto auto;")', 'null'); 21 shouldBeEqualToString('test("-webkit-font-smoothing: auto auto;")', '');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698