diff options
Diffstat (limited to 'WebCore/manual-tests')
8 files changed, 203 insertions, 53 deletions
diff --git a/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html b/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html new file mode 100644 index 0000000..185e5c6 --- /dev/null +++ b/WebCore/manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html @@ -0,0 +1,50 @@ +<html> +<head> + +<style> +.editing { + border: 2px solid red; + padding: 12px; + font-size: 24px; +} +</style> +<script src=../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script> + +<script> +function editingTest() { + typeCharacterCommand('t'); + typeCharacterCommand('h'); + typeCharacterCommand('e'); + typeCharacterCommand(' '); + typeCharacterCommand('c'); + typeCharacterCommand('o'); + typeCharacterCommand('l'); + typeCharacterCommand('l'); + typeCharacterCommand('a'); + typeCharacterCommand('p'); + typeCharacterCommand('s'); +} + +</script> + +<title>Autocorrection Cancellation By ESC Test</title> +</head> +<body> +<div><p>This test verifies that autocorrection is not applied when user dismisses correction panel by pressing +ESC key.</p> +<p>After seeing the correction panel, press ESC key, then press space. You should see the phrase "the collaps" +where "collaps" has red mispell underline. </p> +<p style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously +dismissed 'collapse' as the correct spelling of 'collaps' several times, the spell checker will not provide +'collapse' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling.</p> +<div contenteditable id="root" class="editing"> +<span id="test"></span> +</div> + + +<script> +runEditingTest(); +</script> + +</body> +</html> diff --git a/WebCore/manual-tests/compositing/show-composited-iframe-on-back-button.html b/WebCore/manual-tests/compositing/show-composited-iframe-on-back-button.html new file mode 100644 index 0000000..fff8888 --- /dev/null +++ b/WebCore/manual-tests/compositing/show-composited-iframe-on-back-button.html @@ -0,0 +1,76 @@ +<!DOCTYPE html> + +<html> +<head> + <!-- + This content was originally intended as a layout test, but the sequencing performed by + queueBackNavigation/queueForwardNavigation differs somehow from what occurs when hitting + the back and forward buttons, so the error does not occur. I've left all the LayoutTestController + logic in the test in case this is fixed in the future. + --> + + <title>Show composited iframe contents when navigating back to page</title> + <style type="text/css" media="screen"> + #box { + background-color: red; + width: 100px; + height: 100px; + -webkit-transform: translateZ(0); + } + iframe { + margin: 20px; + height: 250px; + width: 250px; + border: 1px solid black; + } + + .composited { + -webkit-transform: translateZ(0); + } + + </style> + <script type="text/javascript" charset="utf-8"> + var dumpLayerTree = function() + { + if (window.layoutTestController) { + document.getElementById('layers').innerHTML += "Layer Tree after\n\n"+layoutTestController.layerTreeAsText()+"\n\n"; + } + } + + if (window.layoutTestController) { + layoutTestController.dumpAsText(); + } + + function onPageShow(evt) + { + if (!evt.persisted && window.layoutTestController) { + // this is the first time the page has been loaded, then setup the + // to-be-tested scenario. + document.getElementById('layers').innerHTML = "Layer Tree before\n\n"+layoutTestController.layerTreeAsText()+"\n\n"; + layoutTestController.queueLoad("resources/subframe.html"); + layoutTestController.queueBackNavigation(1); + layoutTestController.queueForwardNavigation(1); + layoutTestController.queueBackNavigation(1); + layoutTestController.queueNonLoadingScript("dumpLayerTree()"); + } + } + + window.onpageshow = onPageShow; + </script> +</head> +<body> +<p> + This page has a composited iframe. When navigating to a new page and then back to this one, the iframe contents should show up. +</p> + Click on the following URL and then click back. When navigating back to this page, the blue box inside the black rectangle + should show up. +</p> +<pre> + <a href="http://apple.com">http://apple.com</a> +</pre> + <div id=box></div> + <iframe id="iframe" scrolling="no" src="resources/composited-subframe.html"></iframe> +<br> +<pre id="layers"></pre> +</body> +</html> diff --git a/WebCore/manual-tests/cursor-empty-url.html b/WebCore/manual-tests/cursor-empty-url.html new file mode 100644 index 0000000..a336100 --- /dev/null +++ b/WebCore/manual-tests/cursor-empty-url.html @@ -0,0 +1,3 @@ +<div>Mousing over the grey block should not cause a crash.</div> +<link rel="stylesheet" href="resources/cursor-empty-url.css"></link> +<div id="target" style="width: 50px; height: 50px; margin: 10px; background: #ddd"></div> diff --git a/WebCore/manual-tests/indexed-database.html b/WebCore/manual-tests/indexed-database.html deleted file mode 100644 index da2a1e1..0000000 --- a/WebCore/manual-tests/indexed-database.html +++ /dev/null @@ -1,49 +0,0 @@ -<html> -<body> -<p>This is a test that only applies to IndexedDB. <span id=enabled>Our test for whether you have it enabled seems to have failed.</span></p> - -<p>Please follow these steps in order:</p> - -<p>First, click <a href="javascript: doOpen(true)">here</a> to open an indexedDB database. Look in the proper place in your file system (the place being specific to each port) and verify a file was created. You should be able to open the file up with sqlite and examine it that way as well.</p> - -<p>Next, close the browser, delete the file, replace it with some garbage, and make it read only to the user the browser is running as. Now click <a href="javascript: doOpen(false)">here</a>. You should get some sort of error.</p> - -<p>Close the browser, delete the file you made, and click <a href="javascript: doOpen(true)">here</a>. All should be well again.</p> - -<p>Status: <span id=status>...</span></p> - -<script> - -if (!('indexedDB' in window)) - document.getElementById("enabled").innerHTML = "<font color=red>Your build does NOT seem to have it enabled. So all code on this page is disabled.</font>"; -else - document.getElementById("enabled").innerHTML = "<font color=green>Your build seems to have it enabled.</font>"; - -function status(str, color) -{ - if (color) - str = "<font color='" + color + "'>" + str + "</font>"; - document.getElementById("status").innerHTML = str; -} - -function doOpen(expectSuccess) -{ - status("Calling open"); - request = indexedDB.open("xyz"); - request.onsuccess = function() { - if (expectSuccess) - status("Open successful", "green"); - else - status("Open was successful...but shouldn't have been", "red"); - }; - request.onerror = function() { - if (expectSuccess) - status("Unexpected error: " + event.message, "red"); - else - status("Expected error: " + event.message, "green"); - }; -} - -</script> -</body> -</html> diff --git a/WebCore/manual-tests/indexeddb-persists.html b/WebCore/manual-tests/indexeddb-persists.html new file mode 100644 index 0000000..6f5e036 --- /dev/null +++ b/WebCore/manual-tests/indexeddb-persists.html @@ -0,0 +1,69 @@ +<html> +<body> +<p>This is a test that only applies to IndexedDB. <span id=enabled>Our test for whether you have it enabled seems to have failed.</span></p> + +<p>Please follow these steps in order:</p> + +<p>First, click <a href="javascript: setData()">here</a> to open a database and set some data within it.</p> + +<p>Next, close the browser and then re-open this page.</p> + +<p>Lastly, click <a href="javascript: verifyData()">here</a> to verify the data was there</p> + +<p>Status: <span id=status>...</span></p> + +<script> + +if (!('webkitIndexedDB' in window)) + document.getElementById("enabled").innerHTML = "<font color=red>Your build does NOT seem to have it enabled. So all code on this page is disabled.</font>"; +else + document.getElementById("enabled").innerHTML = "<font color=green>Your build seems to have it enabled.</font>"; + +function status(str, color) +{ + if (color) + str = "<font color='" + color + "'>" + str + "</font>"; + document.getElementById("status").innerHTML = str; +} + +function setData() +{ + status("Something must have gone wrong (or we're still working)...", "red"); + + webkitIndexedDB.open("someDB", "some description").onsuccess = function() { + event.result.setVersion("some version").onsuccess = function() { + var db = event.source; + while (db.objectStores.length) + db.removeObjectStore(db.objectStores[0]); + db.createObjectStore("test").put("value", "key").onsuccess = function() { + status("Value set", "green"); + } + } + } +} + +function verifyData() +{ + status("Something must have gone wrong (or we're still working)...", "red"); + + webkitIndexedDB.open("someDB", "some description").onsuccess = function() { + try { + var result = event.result.transaction([]).objectStore("test").get("key"); + result.onsuccess = function() { + if (event.result == "value") + status("Value verified", "green"); + else + status("Value incorrect!", "red"); + } + result.onerror = function() { + status("An error occurred: " + event.code + " " + event.message, "red"); + } + } catch (e) { + status("An exception occurred: " + e, "red"); + } + } +} + +</script> +</body> +</html> diff --git a/WebCore/manual-tests/plugins/windowed.html b/WebCore/manual-tests/plugins/windowed.html index 808a0ad..56a02f4 100644 --- a/WebCore/manual-tests/plugins/windowed.html +++ b/WebCore/manual-tests/plugins/windowed.html @@ -62,7 +62,7 @@ <body> <b> Verify the following tests with and without the page scrolled (including seeming unrelated test cases like printing). <br/> - For the Qt port, test with both QtLauncher and QGVLauncher </b> <br/><br/> + For the Qt port, test with QGraphicsView enabled and disabled</b> <br/><br/> <!-- <embed id="flashPlugin" src="http://www.youtube.com/v/loXfcsXRB-w&hl=en&fs=1" --!> <embed id="flashPlugin" src="test.swf" @@ -91,7 +91,7 @@ <input type="checkbox" name="zoomCheckBox"> Verify if elements in flash are correctly painted and clickable after zooming <br/> - <input type="checkbox" name="screenshotBox"> Verify if taking a screenshot from QtLauncher display flash <br/> + <input type="checkbox" name="screenshotBox"> Verify if taking a screenshot from QtTestBrowser displays flash <br/> <input type="checkbox" name="paintSystemsCheckBox"> Verify if flash is displayed with graphicssystems - raster, opengl <br/> diff --git a/WebCore/manual-tests/plugins/windowless.html b/WebCore/manual-tests/plugins/windowless.html index 1020abb..27e8a82 100644 --- a/WebCore/manual-tests/plugins/windowless.html +++ b/WebCore/manual-tests/plugins/windowless.html @@ -62,7 +62,7 @@ <body> <b> Verify the following tests with and without the page scrolled (including seeming unrelated test cases like printing). <br/> - For the Qt port, test with both QtLauncher and QGVLauncher </b> <br/><br/> + For the Qt port, test with QGraphicsView enabled and disabled</b> <br/><br/> <!-- <embed id="flashPlugin" src="http://www.youtube.com/v/loXfcsXRB-w&hl=en&fs=1" --!> <embed id="flashPlugin" src="test.swf" @@ -92,7 +92,7 @@ <input type="checkbox" name="zoomCheckBox"> Verify if elements in flash are correctly painted and clickable after zooming <br/> - <input type="checkbox" name="screenshotBox"> Verify if taking a screenshot from QtLauncher display flash <br/> + <input type="checkbox" name="screenshotBox"> Verify if taking a screenshot from QtTestBrowser displays flash <br/> <input type="checkbox" name="paintSystemsCheckBox"> Verify if flash is displayed with graphicssystems - raster, opengl <br/> diff --git a/WebCore/manual-tests/resources/cursor-empty-url.css b/WebCore/manual-tests/resources/cursor-empty-url.css new file mode 100644 index 0000000..0479af1 --- /dev/null +++ b/WebCore/manual-tests/resources/cursor-empty-url.css @@ -0,0 +1 @@ +#target { cursor: url(''), auto; } |