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

Unified Diff: third_party/WebKit/LayoutTests/security/immutable-prototype-worker.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/security/immutable-prototype-worker.html
diff --git a/third_party/WebKit/LayoutTests/security/immutable-prototype-worker.html b/third_party/WebKit/LayoutTests/security/immutable-prototype-worker.html
new file mode 100644
index 0000000000000000000000000000000000000000..6c4a42341bb15384f819c8e43785ca700c5f1d83
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/security/immutable-prototype-worker.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+'use strict';
+
+let expected = ['immutable', 'immutable', 'immutable', 'immutable', 'immutable'];
+
+async_test(function(t) {
+ let worker = new Worker('immutable-prototype-worker.js');
+ worker.onmessage = t.step_func_done(function(result) {
+ assert_array_equals(expected, result.data);
+ });
+}, 'worker prototype chain should be immutable');
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698