1 <script src=
"../../../resources/js-test.js"></script>
3 description("Tests that assigning a bad string to HTMLFrameElement.location throws and aborts properly.");
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");