diff options
author | Steve Block <steveblock@google.com> | 2010-09-07 16:06:44 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-07 16:36:45 +0100 |
commit | eff69b907ef2cd3a9af0351287a929c66f58e3f6 (patch) | |
tree | c0d8835711b71631a15c3fb20d93c195ee3d5064 /LayoutTests/fast/constructors | |
parent | 66945f3db6c497fb182ef8a187b8c69e683dbb26 (diff) | |
download | external_webkit-eff69b907ef2cd3a9af0351287a929c66f58e3f6.zip external_webkit-eff69b907ef2cd3a9af0351287a929c66f58e3f6.tar.gz external_webkit-eff69b907ef2cd3a9af0351287a929c66f58e3f6.tar.bz2 |
Adds a number of fast/ LayoutTest directories to the triaged set
Tests are added at r66079. All tests pass
fast/constructors/
fast/cookies/
fast/dom/Attr/
fast/dom/CSSStyleDeclaration/
fast/dom/DOMImplementation/
fast/dom/DeviceMotion/
fast/dom/EntityReference/
fast/dom/HTMLAnchorElement/
fast/dom/HTMLButtonElement/
fast/dom/HTMLFontElement/
fast/dom/HTMLFormElement/
fast/dom/HTMLHtmlElement/
fast/dom/HTMLKeygenElement/
fast/dom/HTMLLabelElement/
fast/dom/HTMLMetaElement/
fast/dom/HTMLTableRowElement/
fast/dom/HTMLTableSectionElement/
fast/dom/Node/
fast/dom/NodeList/
fast/dom/Selection/
fast/dom/StyleSheet/
fast/dom/Text/
fast/dom/TreeWalker/
fast/dom/beforeload/
fast/dom/getElementsByClassName/
fast/leaks/
Change-Id: I9a2c401151f7abf5bb22b764b1327022ab651e04
Diffstat (limited to 'LayoutTests/fast/constructors')
-rw-r--r-- | LayoutTests/fast/constructors/constructor-as-function-crash-expected.txt | 13 | ||||
-rw-r--r-- | LayoutTests/fast/constructors/constructor-as-function-crash.html | 32 |
2 files changed, 45 insertions, 0 deletions
diff --git a/LayoutTests/fast/constructors/constructor-as-function-crash-expected.txt b/LayoutTests/fast/constructors/constructor-as-function-crash-expected.txt new file mode 100644 index 0000000..cf56e2e --- /dev/null +++ b/LayoutTests/fast/constructors/constructor-as-function-crash-expected.txt @@ -0,0 +1,13 @@ +Calling bindings constructors as function should throw an exception and not cause a crash. + +PASS: EventSource +PASS: MessageChannel +PASS: SharedWorker +PASS: WebGLArrayBuffer +PASS: WebKitCSSMatrix +PASS: WebKitPoint +PASS: WebSocket +PASS: Worker +PASS: XMLHttpRequest +PASS: XSLTProcessor + diff --git a/LayoutTests/fast/constructors/constructor-as-function-crash.html b/LayoutTests/fast/constructors/constructor-as-function-crash.html new file mode 100644 index 0000000..29e20d3 --- /dev/null +++ b/LayoutTests/fast/constructors/constructor-as-function-crash.html @@ -0,0 +1,32 @@ +<html> +<head> + <title>Calling bindings constructors as function should not cause a crash</title> + <script> + if (window.layoutTestController) + layoutTestController.dumpAsText(); + + function runTest() + { + // List of constructors to test. + var constructors = ["EventSource", "MessageChannel", "SharedWorker", "WebGLArrayBuffer", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"]; + var result = document.getElementById("result"); + for (var i in constructors) { + try { + var func = constructors[i] + "()"; + eval(func); + result.innerHTML += "FAIL"; + } + catch (e) { + result.innerHTML += "PASS"; + } + result.innerHTML += ": " + constructors[i] + "<br/>"; + } + } + + </script> +</head> +<body onload="runTest()"> + <p>Calling <code>bindings</code> constructors as function should throw an exception and not cause a crash.</p> + <div id="result"></div> +</html> + |