| Index: third_party/WebKit/LayoutTests/csspaint/registerPaint.html
|
| diff --git a/third_party/WebKit/LayoutTests/csspaint/registerPaint.html b/third_party/WebKit/LayoutTests/csspaint/registerPaint.html
|
| index 424270701f2741dd20dbc6020710743e674be6d4..8f09056d7c105e66da4e7783703f05dfe93339d5 100644
|
| --- a/third_party/WebKit/LayoutTests/csspaint/registerPaint.html
|
| +++ b/third_party/WebKit/LayoutTests/csspaint/registerPaint.html
|
| @@ -1,32 +1,8 @@
|
| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| +<script src="resources/test-runner-paint-helper.js"></script>
|
| <script>
|
| -function runner(tests) {
|
| - if (window.testRunner) {
|
| - testRunner.waitUntilDone();
|
| - testRunner.dumpAsText();
|
| - }
|
| -
|
| - tests.reduce(function(chain, obj) {
|
| - return chain.then(function() {
|
| - if (obj.expectedError) {
|
| - console.log('The worklet should throw an error with: "' + obj.expectedError + '"');
|
| - } else if (obj.expectedMessage) {
|
| - console.log('The worklet should log a warning with: "' + obj.expectedMessage + '"');
|
| - } else {
|
| - console.log('The worklet should not throw an error.');
|
| - }
|
| - var blob = new Blob([obj.script], {type: 'text/javascript'});
|
| - return paintWorklet.import(URL.createObjectURL(blob));
|
| - });
|
| - }, Promise.resolve()).then(function() {
|
| - if (window.testRunner) {
|
| - testRunner.notifyDone();
|
| - }
|
| - });
|
| -}
|
| -
|
| function runTest() {
|
| runner([{
|
| expectedError: "A class with name:'foo' is already registered.",
|
|
|