summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/inspector-support/uncaught-dom1-exception.html
blob: 9038af89fd178f90b128a16c05741c4eaf920648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<head>
<script>

function onload()
{
    if (window.testRunner)
        testRunner.dumpAsText();

    // Following code generates an exception.
    var p = document.createTextNode('');
    p.textContent = "foo";
    p.splitText(10000);
}

</script>
</head>

<body onload="onload()">
<p>
This tests that we are getting the correct message for DOM Exception 1: INDEX_SIZE_ERR.
</p>

</body>
</html>