diff options
author | Steve Block <steveblock@google.com> | 2011-05-06 11:45:16 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-05-12 13:44:10 +0100 |
commit | cad810f21b803229eb11403f9209855525a25d57 (patch) | |
tree | 29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /Source/WebCore/manual-tests/JavaScript-bookmarklets.html | |
parent | 121b0cf4517156d0ac5111caf9830c51b69bae8f (diff) | |
download | external_webkit-cad810f21b803229eb11403f9209855525a25d57.zip external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2 |
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'Source/WebCore/manual-tests/JavaScript-bookmarklets.html')
-rw-r--r-- | Source/WebCore/manual-tests/JavaScript-bookmarklets.html | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/JavaScript-bookmarklets.html b/Source/WebCore/manual-tests/JavaScript-bookmarklets.html new file mode 100644 index 0000000..0b71f6f --- /dev/null +++ b/Source/WebCore/manual-tests/JavaScript-bookmarklets.html @@ -0,0 +1,55 @@ +<script> +var arr = new Array("var%20x=' ';", // Space %20 + "var%20x='#';", // # %23 + "var%20x='$';", // $ %24 + "var%20x='%';", // % %25 + "var%20x='&';", // & %26 + "var%20x='/';", // / %2F + "var%20x=':';", // : %3A + "var%20x=';';", // ; %3B + "var%20x='<';", // < %3C + "var%20x='=';", // = %3D + "var%20x='>';", // > %3E + "var%20x='?';", // ? %3F + "var%20x='@';", // @ %40 + "var%20x='[';", // [ %5B + "var%20x='\\';", // \ %5C + "var%20x=']';", // ] %5D + "var%20x='^';", // ^ %5E + "var%20x='`';", // ' %60 + "var%20x='{';", // { %7B + "var%20x='|';", // | %7C + "var%20x='}';", // } %7D + "var%20x='~';"); // ~ %7E + + +function makeLinks() +{ + var str = "javascript:"; + var anchor, anchorText; + for (key in arr) + { + anchor = document.createElement("a"); + anchor.setAttribute("href", str+arr[key]); + anchorText = document.createTextNode(arr[key]); + anchor.appendChild(anchorText); + document.body.appendChild(anchor); + document.body.appendChild(document.createElement("br")); + } +} + +</script> +<body onload="makeLinks();"> +This test is for <a href="rdar://problem/5310312">rdar://problem/5310312</a> and can be run manually only.<br> +<a href="rdar://problem/5379908">rdar://problem/5379908</a> tracks the effort to enhance DRT to make this into a layout test.<br> +<br> +<b>Directions:</b> +<ol> +<li> drag each link below to the bookmarks bar to create bookmarks +<li> open the JavaScript console (in the debug menu) +<li> click on all the bookmarks you've just created +</ol> +<b>Expected results:</b> +no parse errors in the JavaScript console<br> +<br> +</body>
\ No newline at end of file |