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

Side by Side Diff: LayoutTests/css3/compositing/script-tests/blend-mode-property-parsing.js

Issue 15012010: Remove the CSS_COMPOSITING define, leaving the implementation under the runtime flag, since runtime… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed bogus test Created 7 years, 7 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("Test the parsing of the mix-blend-mode property."); 1 description("Test the parsing of the mix-blend-mode property.");
2 2
3 function jsWrapperClass(node) 3 function jsWrapperClass(node)
4 { 4 {
5 if (!node) 5 if (!node)
6 return "[null]"; 6 return "[null]";
7 var string = Object.prototype.toString.apply(node); 7 var string = Object.prototype.toString.apply(node);
8 return string.substr(8, string.length - 9); 8 return string.substr(8, string.length - 9);
9 } 9 }
10 10
11 function shouldBeType(expression, className, prototypeName, constructorName) 11 function shouldBeType(expression, className, prototypeName, constructorName)
12 { 12 {
13 if (!prototypeName) 13 if (!prototypeName)
14 prototypeName = className + "Prototype"; 14 prototypeName = "Object";
15 if (!constructorName) 15 if (!constructorName)
16 constructorName = className + "Constructor"; 16 constructorName = "Function";
17 shouldBe("jsWrapperClass(" + expression + ")", "'" + className + "'"); 17 shouldBe("jsWrapperClass(" + expression + ")", "'" + className + "'");
18 shouldBe("jsWrapperClass(" + expression + ".__proto__)", "'" + prototypeName + "'"); 18 shouldBe("jsWrapperClass(" + expression + ".__proto__)", "'" + prototypeName + "'");
19 shouldBe("jsWrapperClass(" + expression + ".constructor)", "'" + constructor Name + "'"); 19 shouldBe("jsWrapperClass(" + expression + ".constructor)", "'" + constructor Name + "'");
20 } 20 }
21 21
22 // These have to be global for the test helpers to see them. 22 // These have to be global for the test helpers to see them.
23 var stylesheet, cssRule, declaration, blendModeRule, subRule; 23 var stylesheet, cssRule, declaration, blendModeRule, subRule;
24 var styleElement = document.createElement("style"); 24 var styleElement = document.createElement("style");
25 document.head.appendChild(styleElement); 25 document.head.appendChild(styleElement);
26 stylesheet = styleElement.sheet; 26 stylesheet = styleElement.sheet;
(...skipping 16 matching lines...) Expand all
43 shouldBeType("blendModeRule", "CSSPrimitiveValue"); 43 shouldBeType("blendModeRule", "CSSPrimitiveValue");
44 } 44 }
45 45
46 var blendmodes = ["normal", "multiply", "screen", "overlay", "darken", "lighten" , "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclus ion", "hue", "saturation", "color", "luminosity"]; 46 var blendmodes = ["normal", "multiply", "screen", "overlay", "darken", "lighten" , "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclus ion", "hue", "saturation", "color", "luminosity"];
47 47
48 for(x in blendmodes) 48 for(x in blendmodes)
49 testBlendModeRule("Basic reference", blendmodes[x], 1, blendmodes[x]); 49 testBlendModeRule("Basic reference", blendmodes[x], 1, blendmodes[x]);
50 50
51 51
52 successfullyParsed = true; 52 successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698