Bug 1464951 [wpt PR 11210] - Worker: Add a test for eval(import()), a=testonly
authorHiroki Nakagawa <nhiroki@chromium.org>
Wed, 06 Jun 2018 16:33:07 +0000
changeset 476423 6c56d3f1f2c251a75da394cd7e65c16884ebccd4
parent 476422 1c6fa562b318e46957b439dae6442b01de5d0145
child 476424 bcd9d100884297d59bfb2c8766ee18d5d56669b9
push id9374
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:43:20 +0000
treeherdermozilla-beta@160e085dfb0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1464951, 11210, 680046, 1072225, 562404
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1464951 [wpt PR 11210] - Worker: Add a test for eval(import()), a=testonly Automatic update from web-platform-testsWorker: Add a test for eval(import()) Bug: 680046 Change-Id: Ice3a4adcac4be7b255e263a57aa65609f45f30dd Reviewed-on: https://chromium-review.googlesource.com/1072225 Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#562404} -- wpt-commits: 486a1bc5a1e46aec9c579278d7a074b4a55fc3aa wpt-pr: 11210
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/workers/modules/dedicated-worker-import.html
testing/web-platform/tests/workers/modules/resources/eval-dynamic-import-worker.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -300201,16 +300201,21 @@
      {}
     ]
    ],
    "workers/modules/resources/empty-worker.js": [
     [
      {}
     ]
    ],
+   "workers/modules/resources/eval-dynamic-import-worker.js": [
+    [
+     {}
+    ]
+   ],
    "workers/modules/resources/export-on-dynamic-import-script.js": [
     [
      {}
     ]
    ],
    "workers/modules/resources/export-on-load-script.js": [
     [
      {}
@@ -618450,17 +618455,17 @@
    "63b2320a3ecf6133a3525574bf5a1d185d1f3aa7",
    "testharness"
   ],
   "workers/modules/dedicated-worker-import-meta.html": [
    "32cd3419ff904a2440d9a6eaa7cb28f78d4a7e32",
    "testharness"
   ],
   "workers/modules/dedicated-worker-import.html": [
-   "e74cf8f26b689fbcd57ff9aa7fa37eda4f46a678",
+   "0b839e87ae98ad1abf32216a2086334cbc011ac0",
    "testharness"
   ],
   "workers/modules/dedicated-worker-options-credentials.html": [
    "1d6a1629f81d26efcd05bf1c7d40011609238f4f",
    "testharness"
   ],
   "workers/modules/dedicated-worker-options-credentials.html.headers": [
    "0de4f6326452e016161eabf248e047253507b79d",
@@ -618485,16 +618490,20 @@
   "workers/modules/resources/dynamic-import-worker.js": [
    "9db02105e0ee1300518ca70259d4a93671062219",
    "support"
   ],
   "workers/modules/resources/empty-worker.js": [
    "84b3339c3419e318803e51f46d7252d9e8ac183b",
    "support"
   ],
+  "workers/modules/resources/eval-dynamic-import-worker.js": [
+   "1bb31cf22c566d29f4d7bebca546fdd79ff3ec07",
+   "support"
+  ],
   "workers/modules/resources/export-on-dynamic-import-script.js": [
    "dbb6eaa13def20fd310c7aaafab3d3ef9fe99859",
    "support"
   ],
   "workers/modules/resources/export-on-load-script.js": [
    "fab13482dce29d3150f4eb06b1375c2610ab07f3",
    "support"
   ],
--- a/testing/web-platform/tests/workers/modules/dedicated-worker-import.html
+++ b/testing/web-platform/tests/workers/modules/dedicated-worker-import.html
@@ -35,9 +35,13 @@ import_test('resources/dynamic-import-wo
 import_test('resources/nested-dynamic-import-worker.js',
             ['export-on-dynamic-import-script.js', 'export-on-load-script.js'],
             'Nested dynamic import.');
 
 import_test('resources/dynamic-import-and-then-static-import-worker.js',
             ['export-on-static-import-script.js', 'export-on-load-script.js'],
             'Dynamic import and then static import.');
 
+import_test('resources/eval-dynamic-import-worker.js',
+            ['export-on-load-script.js'],
+            'eval(import()).');
+
 </script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/workers/modules/resources/eval-dynamic-import-worker.js
@@ -0,0 +1,3 @@
+const code = "import('./export-on-load-script.js')" +
+             "  .then(module => postMessage(module.importedModules));"
+eval(code);