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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 script: "registerPaint('foo7', class { });", | 51 script: "registerPaint('foo7', class { });", |
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 script: "registerPaint('foo11', class { static get inputProperties() { r
eturn ['-webkit-border-radius']; } paint() { } }); console.log('Success for \\'f
oo11\\'.');" | 60 script: "registerPaint('foo11', class { static get inputProperties() { r
eturn ['-webkit-border-radius']; } paint() { } }); console.log('Success for \\'f
oo11\\'.');" |
| 61 }, { |
| 62 expectedError: "The 'alpha' property on the class is not a boolean.", |
| 63 script: "registerPaint('foo12', class { static get alpha() { return 42;
} });", |
| 64 }, { |
| 65 script: "registerPaint('foo13', class { static get alpha() { return true
; } paint() { } }); console.log('Success for \\'foo13\\'.');", |
61 }]); | 66 }]); |
62 } | 67 } |
63 </script> | 68 </script> |
64 </head> | 69 </head> |
65 <body onload="runTest()"> | 70 <body onload="runTest()"> |
66 <p>This tests a series of PaintWorkletGlobalScope#registerPaint calls.</p> | 71 <p>This tests a series of PaintWorkletGlobalScope#registerPaint calls.</p> |
67 <p>See the devtools console for test output.</p> | 72 <p>See the devtools console for test output.</p> |
68 </body> | 73 </body> |
69 </html> | 74 </html> |
OLD | NEW |