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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/parse-input-arguments.html

Issue 2561773003: Parse input argument types and store the argument types in CSSPaintDefinition. (Closed)
Patch Set: update tests Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/parse-input-arguments-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/test-runner-paint-helper.js"></script>
5 <script>
6 function runTest() {
7 runner([{
8 expectedError: "failed!",
9 script: "registerPaint('foo', class { static get inputArguments() { throw Error('failed!'); } });",
10 }, {
11 expectedError: " Failed to execute 'registerPaint' on 'PaintWorkletGlobalS cope': The value provided is neither an array, nor does it have indexed properti es.",
12 script: "registerPaint('foo1', class { static get inputArguments() { retur n 'non sense stuff'; } });",
13 }, {
14 expectedError: "Failed to execute 'registerPaint' on 'PaintWorkletGlobalSc ope': Invalid argument types.",
15 script: "registerPaint('foo2', class { static get inputArguments() { retur n ['<non-sense-type>'] } });",
16 }, {
17 script: "registerPaint('foo3', class { static get inputArguments(){return ['<length>'];} paint() { } }); console.log('Success for \\'foo\\'.');",
18 }]);
19 }
20 </script>
21 </head>
22 <body onload="runTest()">
23 <p>This tests a series of PaintWorkletGlobalScope#registerPaint Parse Input Argu ments calls.</p>
24 <p>See the devtools console for test output.</p>
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/parse-input-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698