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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 PASS result is correctValue 1 PASS result is correctValue
2 PASS result is correctValue
3 PASS (function() { 'use strict'; location.valueOf = 'haxored'; return location.v alueOf(); }()) threw exception TypeError: Cannot assign to read only property 'v alueOf' of [object Location].
4 PASS (function() { location.valueOf = 'haxored'; return location.valueOf(); }()) did not throw exception.
5 PASS (function() { 'use strict'; delete location.valueOf; }()) threw exception T ypeError: Cannot delete property 'valueOf' of [object Location].
6 PASS (function() { delete location.valueOf; return !!location.valueOf}()) is tru e
2 PASS successfullyParsed is true 7 PASS successfullyParsed is true
3 8
4 TEST COMPLETE 9 TEST COMPLETE
5 10
OLDNEW
« 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