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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/registerPaint.html

Issue 2077413005: Add "alpha" option to PaintWorklet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 4 years, 5 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 function runner(tests) { 5 function runner(tests) {
6 if (window.testRunner) { 6 if (window.testRunner) {
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 } 9 }
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }, { 52 }, {
53 expectedError: "The 'paint' property on the prototype is not a function. ", 53 expectedError: "The 'paint' property on the prototype is not a function. ",
54 script: "registerPaint('foo8', class { get paint() { return 42; } });", 54 script: "registerPaint('foo8', class { get paint() { return 42; } });",
55 }, { 55 }, {
56 script: "registerPaint('foo9', class { paint() { } }); console.log('Succ ess for \\'foo9\\'.');", 56 script: "registerPaint('foo9', class { paint() { } }); console.log('Succ ess for \\'foo9\\'.');",
57 }, { 57 }, {
58 script: "var c = function() { }; c.prototype.paint = function() { }; reg isterPaint('foo10', c); console.log('Success for \\'foo10\\'.');", 58 script: "var c = function() { }; c.prototype.paint = function() { }; reg isterPaint('foo10', c); console.log('Success for \\'foo10\\'.');",
59 }, { 59 }, {
60 expectedMessage: "-webkit-border-radius is a prefixed property which is not supported.", 60 expectedMessage: "-webkit-border-radius is a prefixed property which is not supported.",
61 script: "registerPaint('foo11', class { static get inputProperties() { r eturn ['-webkit-border-radius']; } paint() { } });" 61 script: "registerPaint('foo11', class { static get inputProperties() { r eturn ['-webkit-border-radius']; } paint() { } });"
62 }, {
63 expectedError: "The 'alpha' property on the class is not a boolean.",
64 script: "registerPaint('foo12', class { static get alpha() { return 42; } });",
ikilpatrick 2016/06/22 16:00:24 can you also add a registerPaint that should pass
Gleb Lanbin 2016/06/22 21:23:45 Done.
62 }]); 65 }]);
63 } 66 }
64 </script> 67 </script>
65 </head> 68 </head>
66 <body onload="runTest()"> 69 <body onload="runTest()">
67 <p>This tests a series of PaintWorkletGlobalScope#registerPaint calls.</p> 70 <p>This tests a series of PaintWorkletGlobalScope#registerPaint calls.</p>
68 <p>See the devtools console for test output.</p> 71 <p>See the devtools console for test output.</p>
69 </body> 72 </body>
70 </html> 73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698