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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worklet-import-blocked.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/http/tests/security/contentSecurityPolicy/worklet-import-blocked.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worklet-import-blocked.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worklet-import-blocked.html
index ec11a1a45221813f608eb0eca13c2f499beee3f2..de879a37fca18b805fe5d12a744c53e2145bbf09 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worklet-import-blocked.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/worklet-import-blocked.html
@@ -10,9 +10,9 @@
<script>
promise_test(function() {
- return paintWorklet.import('/resources/worklet.js').then(
+ return paintWorklet.addModule('/resources/worklet.js').then(
function(undefined_arg) {
- assert_unreached('import should fail.')
+ assert_unreached('addModule should fail.')
},
function(error) {
assert_equals(error.name, 'NetworkError', 'error should be a NetworkError.');

Powered by Google App Engine
This is Rietveld 408576698