1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/test_bug719503.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +<!doctype html> 1.5 +<!-- 1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=719503 1.7 +--> 1.8 +<title>Test for Bug 719503</title> 1.9 +<script src="/tests/SimpleTest/SimpleTest.js"></script> 1.10 +<link rel="stylesheet" href="/tests/SimpleTest/test.css"> 1.11 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=719503">Mozilla Bug 719503</a> 1.12 +<p id="display"></p> 1.13 +<div id="content" style="display: none"></div> 1.14 +<pre id="test"> 1.15 +<script> 1.16 +try { 1.17 + getSelection().collapse(document.head, 0); 1.18 + getSelection().deleteFromDocument(); 1.19 +} catch(e) { 1.20 + ok(false, "Exception thrown"); 1.21 +} 1.22 +ok(true, "Passed, no exception"); 1.23 +</script>