Test how HTMLAnchorElement.getParameter reacts to too few arguments

https://bugs.webkit.org/show_bug.cgi?id=66522

Patch by Mark Pilgrim <pilgrim@chromium.org> on 2011-09-08
Reviewed by Adam Barth.

* LayoutTests/fast/dom/HTMLAnchorElement/get-parameter-expected.txt: Added.
* LayoutTests/fast/dom/HTMLAnchorElement/get-parameter.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent adf5c3c2
2011-09-08 Mark Pilgrim <pilgrim@chromium.org>
Test how HTMLAnchorElement.getParameter reacts to too few arguments
https://bugs.webkit.org/show_bug.cgi?id=66522
Reviewed by Adam Barth.
* LayoutTests/fast/dom/HTMLAnchorElement/get-parameter-expected.txt: Added.
* LayoutTests/fast/dom/HTMLAnchorElement/get-parameter.html: Added.
2011-09-08 Varun Jain <varunjain@google.com>
Implement double tap detection in GestureRecognizerChromium
......
Test calling getParameter without required arguments.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS a.getParameter() threw exception TypeError: Not enough arguments.
PASS successfullyParsed is true
TEST COMPLETE
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link rel="stylesheet" href="../../js/resources/js-test-style.css">
<script src="../../js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('Test calling getParameter without required arguments.');
var a = document.createElement('a');
shouldThrow("a.getParameter()");
var successfullyParsed = true;
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment