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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html

Issue 2826983002: Rename Worklet.import() to Worklet.addModule(). (Closed)
Patch Set: Fixing Layout Tests Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html b/third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html
index 2113285c3c458187ddaac0ad14ef5f48fe8ce72f..7bb5bcd96d8c70cd14b20813a85cf6fc02cc9521 100644
--- a/third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html
+++ b/third_party/WebKit/LayoutTests/csspaint/valid-image-after-load.html
@@ -28,7 +28,7 @@ if (window.testRunner) {
}
var blob = new Blob([document.getElementById('code').textContent]);
-paintWorklet.import(URL.createObjectURL(blob)).then(function() {
+paintWorklet.addModule(URL.createObjectURL(blob)).then(function() {
var el = document.getElementById('output');
el.style.backgroundImage = 'paint(green)';
runAfterLayoutAndPaint(function() {

Powered by Google App Engine
This is Rietveld 408576698