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

Side by Side Diff: third_party/WebKit/LayoutTests/security/immutable-prototype-sharedworker.html

Issue 2452073002: Freeze global prototype chain per WebIDL (Closed)
Patch Set: Test improvements Created 4 years, 1 month 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 <html>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script>
6 'use strict';
7
8 let expected = ['immutable', 'immutable', 'immutable', 'immutable', 'immutable'] ;
9
10 async_test(function(t) {
11 let worker = new SharedWorker('immutable-prototype-worker.js');
12 worker.port.onmessage = t.step_func_done(function(result) {
13 assert_array_equals(expected, result.data);
14 });
15 worker.port.postMessage(null);
16 }, 'worker prototype chain should be immutable');
17 </script>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698