diff options
Diffstat (limited to 'WebCore/manual-tests')
5 files changed, 97 insertions, 1 deletions
diff --git a/WebCore/manual-tests/load-deferrer-script-element.html b/WebCore/manual-tests/load-deferrer-script-element.html new file mode 100644 index 0000000..c0ad773 --- /dev/null +++ b/WebCore/manual-tests/load-deferrer-script-element.html @@ -0,0 +1,44 @@ +<html> +<head> +<script> +function log(message) +{ + document.getElementById("result").innerHTML += message + "<br>"; +} + +function loadJSFile(){ + var s = document.createElement('script') + s.setAttribute("type", "text/javascript") + s.setAttribute("src", "resources/load-deferrer-script-element.js") + + document.getElementsByTagName("head")[0].appendChild(s); +} + +jsLoaded = false; +runningModal = false; + +// This line will load external script into memory. +loadJSFile(); + +function runModal() +{ + jsLoaded = true; + loadJSFile(); + + runningModal = true; + alert("Scripts should not be running in the background!"); + runningModal = false; +} +</script> +</head> + +<body> + +<p>This tests the bug https://bugs.webkit.org/show_bug.cgi?id=38910. +Click the button, wait 5 seconds and close it. +The test passes if no error messages show up in the page!</p> +<input id="button" type="button" value="click me" onclick="runModal()"/> +<p id="result"></p> + +</body> +</html> diff --git a/WebCore/manual-tests/localstorage-empty-database.html b/WebCore/manual-tests/localstorage-empty-database.html index a164127..d0fcc41 100644 --- a/WebCore/manual-tests/localstorage-empty-database.html +++ b/WebCore/manual-tests/localstorage-empty-database.html @@ -8,6 +8,9 @@ Since no data has been stored, no database file should have been created.</p> <p>If you click <a href="javascript:localStorage.setItem('bar', 'baz');">here</a>, data will be stored, and a database file should be created.</p> -<p>(This is for <a href="https://bugs.webkit.org/show_bug.cgi?id=40301">https://bugs.webkit.org/show_bug.cgi?id=40301</a>.)</p> +<p>If you click <a href="javascript:localStorage.clear();">here</a>, the local storage will be cleared, and the database file should be gone when the browser is closed.</p> + +<p>(This is for <a href="https://bugs.webkit.org/show_bug.cgi?id=40301">https://bugs.webkit.org/show_bug.cgi?id=40301</a> +and <a href="https://bugs.webkit.org/show_bug.cgi?id=40767">https://bugs.webkit.org/show_bug.cgi?id=40767</a>.)</p> </body> </html> diff --git a/WebCore/manual-tests/no-listbox-rendering.html b/WebCore/manual-tests/no-listbox-rendering.html index f4467a6..24336e0 100644 --- a/WebCore/manual-tests/no-listbox-rendering.html +++ b/WebCore/manual-tests/no-listbox-rendering.html @@ -22,6 +22,40 @@ At the right cell you see a description of what should be the state of the eleme <td>combobox in previos cell should have no selected option.</td> </tr> <tr> + <td> + <select multiple> + <optgroup label="1"></optgroup> + <option>11</option> + <option>12</option> + <option>13</option> + <option>14</option> + <optgroup label="2"></optgroup> + <option>21</option> + <option>22</option> + <option>23</option> + <option>24</option> + </select> + </td> + <td>combobox in previos cell should handle optgroup correctly.</td> + </tr> + <tr> + <td> + <select> + <optgroup label="1"></optgroup> + <option>11</option> + <option>12</option> + <option>13</option> + <option>14</option> + <optgroup label="2"></optgroup> + <option>21</option> + <option>22</option> + <option>23</option> + <option>24</option> + </select> + </td> + <td>combobox in previos cell should handle optgroup correctly.</td> + </tr> + <tr> <td><input type="reset"</td> <td>after pressing this button all the combo boxes should go back to the state discribed above.</td> </tr> diff --git a/WebCore/manual-tests/resources/load-deferrer-script-element.js b/WebCore/manual-tests/resources/load-deferrer-script-element.js new file mode 100644 index 0000000..fdecdb4 --- /dev/null +++ b/WebCore/manual-tests/resources/load-deferrer-script-element.js @@ -0,0 +1,5 @@ +if (jsLoaded) { + log("Button was clicked."); + // Use a big timeout value to ensure that error messages do not show up. + setTimeout(function() { if (runningModal) log("Error: This line should not show up!"); }, 3000); +} diff --git a/WebCore/manual-tests/xhr-failure-behind-alert.html b/WebCore/manual-tests/xhr-failure-behind-alert.html new file mode 100644 index 0000000..23b2a83 --- /dev/null +++ b/WebCore/manual-tests/xhr-failure-behind-alert.html @@ -0,0 +1,10 @@ +Connecting to a server that doesn't respond. +Run this from a local file to avoid cross-origin code path. + +<script> +var req = new XMLHttpRequest; +req.open("GET", "http://127.0.0.1:7", true); +req.send(); +req.onerror = function() { document.write("onerror<br>"); } +alert("PASSED if no crash or assertion failure"); +</script> |