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

Side by Side Diff: LayoutTests/fast/regions/script-tests/webkit-region-fragment-parsing.js

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 description('Tests parsing of webkit-region-fragment property');
2
3 var webkitRegionFragmentProperty = "-webkit-region-fragment";
4
5 function testCSSText(declaration) {
6 var div = document.createElement("div");
7 div.setAttribute("style", declaration);
8 return div.style.webkitRegionFragment;
9 }
10
11 function testComputedStyle(declaration) {
12 var div = document.createElement("div");
13 document.body.appendChild(div);
14 div.style.setProperty(webkitRegionFragmentProperty, declaration);
15
16 var contentComputedValue = getComputedStyle(div).getPropertyValue(webkitRegi onFragmentProperty);
17 document.body.removeChild(div);
18 return contentComputedValue;
19 }
20
21 shouldBeEqualToString('testCSSText("' + webkitRegionFragmentProperty + ': auto") ', "auto");
22 shouldBeEqualToString('testCSSText("' + webkitRegionFragmentProperty + ': initia l")', "initial");
23 shouldBeEqualToString('testCSSText("' + webkitRegionFragmentProperty + ': inheri t")', "inherit");
24 shouldBeEqualToString('testCSSText("' + webkitRegionFragmentProperty + ': break" )', "break");
25 shouldBeEqualToString('testCSSText("' + webkitRegionFragmentProperty + ': 0")', "");
26 shouldBeEqualToString('testCSSText("' + webkitRegionFragmentProperty + ': -1")', "");
27 shouldBeEqualToString('testCSSText("' + webkitRegionFragmentProperty + ': 12.5") ', "");
28 shouldBeEqualToString('testCSSText("' + webkitRegionFragmentProperty + ': 1px")' , "");
29
30 shouldBeEqualToString('testComputedStyle("auto")', "auto");
31 shouldBeEqualToString('testComputedStyle("initial")', "auto");
32 shouldBeEqualToString('testComputedStyle("inherit")', "auto");
33 shouldBeEqualToString('testComputedStyle("break")', "break");
34 shouldBeEqualToString('testComputedStyle("0")', "auto");
35 shouldBeEqualToString('testComputedStyle("-1")', "auto");
36 shouldBeEqualToString('testComputedStyle("12.5")', "auto");
37 shouldBeEqualToString('testComputedStyle("1px")', "auto");
OLDNEW
« no previous file with comments | « LayoutTests/fast/regions/script-tests/webkit-flow-parsing.js ('k') | LayoutTests/fast/regions/select-in-region-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698