summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/plugin-destroyed-enumerate.html
blob: 97eee9ef1db20590b1eff52dd5f5cd5acb535d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<script src="../resources/js-test.js"></script>
<embed type="application/x-webkit-test-netscape" id=plugin>
<script>
description("Verify that enumerating the properties of a detached plugin doesn't crash, but throws.");

window.jsTestIsAsync = true;

var testObject;
function runTest() {
    testObject = plugin.testObject;
    plugin.parentNode.removeChild(plugin);
    shouldThrow("Object.getOwnPropertyNames(testObject)");
    finishJSTest();
}
window.onload = runTest;
</script>