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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/URLMismatchError.htm

Issue 2418853003: Worker: Import "imported/wpt/workers" tests (Retry) (Closed)
Patch Set: rebase Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Web Workers: SharedWorker - throw URLMismatchError</title>
4 <link rel="author" title="Intel" href="http://www.intel.com">
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 <div id="log"></div>
8 <script>
9
10 test(function() {
11 var worker = new SharedWorker('shared-worker.js', 'name');
12
13 assert_throws("URLMismatchError", function() {
14 new SharedWorker('some-other-url.js', 'name');
15 });
16
17 }, "Create SharedWorker with different URLs but same name");
18
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698