OLD | NEW |
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 Loading... |
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;
} });", |
| 65 }, { |
| 66 script: "registerPaint('foo13', class { static get alpha() { return true
; } paint() { } }); console.log('Success for \\'foo13\\'.');", |
62 }]); | 67 }]); |
63 } | 68 } |
64 </script> | 69 </script> |
65 </head> | 70 </head> |
66 <body onload="runTest()"> | 71 <body onload="runTest()"> |
67 <p>This tests a series of PaintWorkletGlobalScope#registerPaint calls.</p> | 72 <p>This tests a series of PaintWorkletGlobalScope#registerPaint calls.</p> |
68 <p>See the devtools console for test output.</p> | 73 <p>See the devtools console for test output.</p> |
69 </body> | 74 </body> |
70 </html> | 75 </html> |
OLD | NEW |