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

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

Issue 16690004: [CSS Regions] Rename region-overflow to region-fragment (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch Created 7 years, 6 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-overflow property');
2
3 var webkitRegionOverflowProperty = "-webkit-region-overflow";
4
5 function testCSSText(declaration) {
6 var div = document.createElement("div");
7 div.setAttribute("style", declaration);
8 return div.style.webkitRegionOverflow;
9 }
10
11 function testComputedStyle(declaration) {
12 var div = document.createElement("div");
13 document.body.appendChild(div);
14 div.style.setProperty(webkitRegionOverflowProperty, declaration);
15
16 var contentComputedValue = getComputedStyle(div).getPropertyValue(webkitRegi onOverflowProperty);
17 document.body.removeChild(div);
18 return contentComputedValue;
19 }
20
21 shouldBeEqualToString('testCSSText("' + webkitRegionOverflowProperty + ': auto") ', "auto");
22 shouldBeEqualToString('testCSSText("' + webkitRegionOverflowProperty + ': initia l")', "initial");
23 shouldBeEqualToString('testCSSText("' + webkitRegionOverflowProperty + ': inheri t")', "inherit");
24 shouldBeEqualToString('testCSSText("' + webkitRegionOverflowProperty + ': break" )', "break");
25 shouldBeEqualToString('testCSSText("' + webkitRegionOverflowProperty + ': 0")', "");
26 shouldBeEqualToString('testCSSText("' + webkitRegionOverflowProperty + ': -1")', "");
27 shouldBeEqualToString('testCSSText("' + webkitRegionOverflowProperty + ': 12.5") ', "");
28 shouldBeEqualToString('testCSSText("' + webkitRegionOverflowProperty + ': 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

Powered by Google App Engine
This is Rietveld 408576698