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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/frames/resources/frame-set-location-badstring.html
diff --git a/LayoutTests/fast/frames/resources/frame-set-location-badstring.html b/LayoutTests/fast/frames/resources/frame-set-location-badstring.html
new file mode 100644
index 0000000000000000000000000000000000000000..7ddd9411e9b82908efb067e4765a222d8becfc25
--- /dev/null
+++ b/LayoutTests/fast/frames/resources/frame-set-location-badstring.html
@@ -0,0 +1,11 @@
+<script src="../../../resources/js-test.js"></script>
+<script>
+description("Tests that assigning a bad string to HTMLFrameElement.location throws and aborts properly.");
+
+var frameLocation = parent.frames[1].location;
+shouldNotBe("frameLocation", "null");
+shouldNotBe("frameLocation", "undefined");
+var badString = { toString: function() { throw "Exception in toString()"; } };
+shouldThrow("parent.frames[1].location = badString;", "'Exception in toString()'");
+shouldBe("parent.frames[1].location", "frameLocation");
+</script>

Powered by Google App Engine
This is Rietveld 408576698