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

Side by Side Diff: LayoutTests/fast/shapes/parsing/script-tests/parsing-shape-margin.js

Issue 20806004: Remove Explicit Shapes Enablement in Tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Enabled by default, no need to call internals Created 7 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 | Annotate | Revision Log
OLDNEW
1 description('Test parsing of the CSS shape-margin property.'); 1 description('Test parsing of the CSS shape-margin property.');
2 2
3 if (window.internals)
4 window.internals.settings.setCSSExclusionsEnabled(true);
5
6 // The test functions and globals used here are defined parsing-test-utils.js. 3 // The test functions and globals used here are defined parsing-test-utils.js.
7 4
8 validShapeLengths.forEach(function(value, i, a) { 5 validShapeLengths.forEach(function(value, i, a) {
9 testShapeSpecifiedProperty("-webkit-shape-margin", value, value); 6 testShapeSpecifiedProperty("-webkit-shape-margin", value, value);
10 }); 7 });
11 8
12 testShapeSpecifiedProperty("-webkit-shape-margin", "0", "0px"); 9 testShapeSpecifiedProperty("-webkit-shape-margin", "0", "0px");
13 10
14 invalidShapeLengths.forEach(function(value, i, a) { 11 invalidShapeLengths.forEach(function(value, i, a) {
15 testShapeSpecifiedProperty("-webkit-shape-margin", value, ""); 12 testShapeSpecifiedProperty("-webkit-shape-margin", value, "");
(...skipping 12 matching lines...) Expand all
28 applyToEachArglist( 25 applyToEachArglist(
29 testNotInheritedShapeChildProperty, 26 testNotInheritedShapeChildProperty,
30 [// [property, parentValue, childValue, expectedChildValue] 27 [// [property, parentValue, childValue, expectedChildValue]
31 ["-webkit-shape-margin", "0", "0", "0px"], 28 ["-webkit-shape-margin", "0", "0", "0px"],
32 ["-webkit-shape-margin", "0", "1px", "1px"], 29 ["-webkit-shape-margin", "0", "1px", "1px"],
33 ["-webkit-shape-margin", "1px", "-1em", "0px"], 30 ["-webkit-shape-margin", "1px", "-1em", "0px"],
34 ["-webkit-shape-margin", "2px", "1px", "1px"]] 31 ["-webkit-shape-margin", "2px", "1px", "1px"]]
35 ); 32 );
36 33
37 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698