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

Side by Side Diff: LayoutTests/fast/frames/resources/frame-set-location-badstring.html

Issue 74133005: Remove several uses of toWebCoreStringWithNullCheck(v8::Handle<v8::Value>) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 <script src="../../../resources/js-test.js"></script>
2 <script>
3 description("Tests that assigning a bad string to HTMLFrameElement.location thro ws and aborts properly.");
4
5 var frameLocation = parent.frames[1].location;
6 shouldNotBe("frameLocation", "null");
7 shouldNotBe("frameLocation", "undefined");
8 var badString = { toString: function() { throw "Exception in toString()"; } };
9 shouldThrow("parent.frames[1].location = badString;", "'Exception in toString()' ");
10 shouldBe("parent.frames[1].location", "frameLocation");
11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698