Index: third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js |
diff --git a/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js b/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js |
index d5bd770ab78a5f6a36f603dba52f4ae013578afa..e7aec3d12ad8b45b46f70e53d0908bb1c28a0808 100644 |
--- a/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js |
+++ b/third_party/WebKit/LayoutTests/csspaint/resources/test-runner-paint-helper.js |
@@ -19,7 +19,7 @@ function runner(tests) { |
console.log('The worklet should not throw an error.'); |
} |
var blob = new Blob([obj.script], {type: 'text/javascript'}); |
- return paintWorklet.import(URL.createObjectURL(blob)); |
+ return paintWorklet.addModule(URL.createObjectURL(blob)); |
}); |
}, Promise.resolve()).then(function() { |
if (window.testRunner) { |