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

Unified Diff: third_party/WebKit/LayoutTests/security/immutable-prototype.html

Issue 2452073002: Freeze global prototype chain per WebIDL (Closed)
Patch Set: Remove useless test 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.html
diff --git a/third_party/WebKit/LayoutTests/security/immutable-prototype.html b/third_party/WebKit/LayoutTests/security/immutable-prototype.html
new file mode 100644
index 0000000000000000000000000000000000000000..7bd36e75033c56675a38df477c88f3761aac164a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/security/immutable-prototype.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="immutable-prototype.js"></script>
+<script>
+'use strict';
+
+test(() => {
+ let result = prototypeChain(window);
+ assert_array_equals(result,
+ ['immutable', 'immutable', 'immutable', 'immutable', 'immutable']);
+}, 'global object prototype chain should be immutable');
+</script>
+</html>
+
Yuki 2016/11/09 07:06:44 nit: unnecessary empty line.

Powered by Google App Engine
This is Rietveld 408576698