OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/test-runner-paint-helper.js"></script> | 4 <script src="resources/test-runner-paint-helper.js"></script> |
5 <script> | 5 <script> |
6 function runTest() { | 6 function runTest() { |
7 runner([{ | 7 runner([{ |
8 expectedError: "A class with name:'foo' is already registered.", | 8 expectedError: "A class with name:'foo' is already registered.", |
9 script: "registerPaint('foo', class { paint() { } }); registerPaint('foo
', class { paint() { } });", | 9 script: "registerPaint('foo', class { paint() { } }); registerPaint('foo
', class { paint() { } });", |
10 }, { | 10 }, { |
(...skipping 30 matching lines...) Expand all Loading... |
41 script: "registerPaint('foo13', class { static get alpha() { return true
; } paint() { } }); console.log('Success for \\'foo13\\'.');", | 41 script: "registerPaint('foo13', class { static get alpha() { return true
; } paint() { } }); console.log('Success for \\'foo13\\'.');", |
42 }]); | 42 }]); |
43 } | 43 } |
44 </script> | 44 </script> |
45 </head> | 45 </head> |
46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
47 <p>This tests a series of PaintWorkletGlobalScope#registerPaint calls.</p> | 47 <p>This tests a series of PaintWorkletGlobalScope#registerPaint calls.</p> |
48 <p>See the devtools console for test output.</p> | 48 <p>See the devtools console for test output.</p> |
49 </body> | 49 </body> |
50 </html> | 50 </html> |
OLD | NEW |