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

Unified Diff: LayoutTests/fast/dom/Window/Location/location-override-valueOf-expected.txt

Issue 938593002: [LayoutTests] Add missing location.valueOf override tests to verify unforgeable behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding deletion test cases! Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/Window/Location/location-override-valueOf.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Window/Location/location-override-valueOf-expected.txt
diff --git a/LayoutTests/fast/dom/Window/Location/location-override-valueOf-expected.txt b/LayoutTests/fast/dom/Window/Location/location-override-valueOf-expected.txt
index e35b4e49af4efdc3bc3bb10acd243b867053de4d..b6fa20b44462ce8398d565905fa11641cf7f8eee 100644
--- a/LayoutTests/fast/dom/Window/Location/location-override-valueOf-expected.txt
+++ b/LayoutTests/fast/dom/Window/Location/location-override-valueOf-expected.txt
@@ -1,4 +1,9 @@
PASS result is correctValue
+PASS result is correctValue
+PASS (function() { 'use strict'; location.valueOf = 'haxored'; return location.valueOf(); }()) threw exception TypeError: Cannot assign to read only property 'valueOf' of [object Location].
+PASS (function() { location.valueOf = 'haxored'; return location.valueOf(); }()) did not throw exception.
+PASS (function() { 'use strict'; delete location.valueOf; }()) threw exception TypeError: Cannot delete property 'valueOf' of [object Location].
+PASS (function() { delete location.valueOf; return !!location.valueOf}()) is true
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/dom/Window/Location/location-override-valueOf.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698