diff options
author | Ben Murdoch <benm@google.com> | 2011-06-02 12:07:03 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-06-10 10:47:21 +0100 |
commit | 2daae5fd11344eaa88a0d92b0f6d65f8d2255c00 (patch) | |
tree | e4964fbd1cb70599f7718ff03e50ea1dab33890b /Source/WebCore/manual-tests | |
parent | 87bdf0060a247bfbe668342b87e0874182e0ffa9 (diff) | |
download | external_webkit-2daae5fd11344eaa88a0d92b0f6d65f8d2255c00.zip external_webkit-2daae5fd11344eaa88a0d92b0f6d65f8d2255c00.tar.gz external_webkit-2daae5fd11344eaa88a0d92b0f6d65f8d2255c00.tar.bz2 |
Merge WebKit at r84325: Initial merge by git.
Change-Id: Ic1a909300ecc0a13ddc6b4e784371d2ac6e3d59b
Diffstat (limited to 'Source/WebCore/manual-tests')
7 files changed, 205 insertions, 6 deletions
diff --git a/Source/WebCore/manual-tests/about-blank-xhr.html b/Source/WebCore/manual-tests/about-blank-xhr.html new file mode 100644 index 0000000..8747878 --- /dev/null +++ b/Source/WebCore/manual-tests/about-blank-xhr.html @@ -0,0 +1,10 @@ +<ol> +<li>Create a new tab.</li> +<li>Navigate that tab to about:blank.</li> +<li>Paste the following into the location bar: + <pre>javascript:x = new XMLHttpRequest(); x.open('get', 'http://jquery.com', false); x.send(); alert(x.responseText)</pre> +</li> +<li>Press "Enter".</li> +<li>If you see the contents of jquery.com appear in an alert dialog, something +has gone wrong.</li> +</ol> diff --git a/Source/WebCore/manual-tests/autofill-popup-location.html b/Source/WebCore/manual-tests/autofill-popup-location.html new file mode 100644 index 0000000..5e28a15 --- /dev/null +++ b/Source/WebCore/manual-tests/autofill-popup-location.html @@ -0,0 +1,20 @@ +<html> + <head> + <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"> + <title> + Test autofill popup window shows at the correct location. + </title> + </head> + <body> + <h3>Test autofill popup window shows at the correct location.</h3> + <ol> + <li> Enter 'Always show bookmarks bar' in the following text input area.</li> + <li> Enter 'Test' in the text input area.</li> + <li> Press 'a' and make sure 'Always show bookmarks bar' is shown in autofill popup window.</li> + <li> Select all with pressing Ctrl-a.</li> + <li> Press 't' and make sure 'Test' is shown and the popup window location is correct.</li> + </ol> + <br> + <form><input name=q autofocus></form> + </body> +</html> diff --git a/Source/WebCore/manual-tests/media-elements/video-replaces-poster.html b/Source/WebCore/manual-tests/media-elements/video-replaces-poster.html index 8d852aa..bf91a39 100644 --- a/Source/WebCore/manual-tests/media-elements/video-replaces-poster.html +++ b/Source/WebCore/manual-tests/media-elements/video-replaces-poster.html @@ -8,8 +8,8 @@ start playing.</p> <video width="480" height="270" type="video/mp4" - src="../../../LayoutTests/media/content/test.mp4" - poster="../../../LayoutTests/media/content/abe.png" autoplay> + src="../../../../LayoutTests/media/content/test.mp4" + poster="../../../../LayoutTests/media/content/abe.png" autoplay> </video> </body> </html> diff --git a/Source/WebCore/manual-tests/media-muted.html b/Source/WebCore/manual-tests/media-muted.html new file mode 100644 index 0000000..40e4e41 --- /dev/null +++ b/Source/WebCore/manual-tests/media-muted.html @@ -0,0 +1,32 @@ +<html> + <!-- LayoutTests location is hard-coded to avoid duplication of code. --> + <script src="http://svn.webkit.org/repository/webkit/trunk/LayoutTests/media/media-file.js"></script> + <script> + var vid; + + function canplaythrough() + { + vid.play(); + } + + function load() + { + vid = document.getElementById('vid'); + vid.addEventListener('canplaythrough', canplaythrough); + + // Mute first + vid.muted = true; + + vid.src = "http://src.chromium.org/svn/trunk/src/chrome/test/data/media/" + findMediaFile("video", "bear"); + } + </script> + + <body> + <video id=vid controls autoplay> + </video> + <p>TEST: Video should be muted (e.g., controls) and also produce no sound (<a href="https://bugs.webkit.org/show_bug.cgi?id=57673">bug 57673</a>).</p> + <input type="button" value="Load movie" onclick="load()"> + <br> + </body> + +</html> diff --git a/Source/WebCore/manual-tests/qt/plugin-painting.html b/Source/WebCore/manual-tests/qt/plugin-painting.html new file mode 100644 index 0000000..3aa87bc --- /dev/null +++ b/Source/WebCore/manual-tests/qt/plugin-painting.html @@ -0,0 +1,60 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>Flash In IFrame Test File</title> +</head> + +<body> + + <b> This manual tests verifies paging and arrow-navigating up and down a page of plugins doesn't result + in them appearing to get fused together. QtWebKit wasn't updating the position of the plugins + within the page before scheduling them for a repaint, with the result that parts of the plugin + were appearing in their old position after a page scroll. This was a problem for + Qt in <a href="https://bugs.webkit.org/show_bug.cgi?id=57179">bug 57179</a></b> <br/><br/> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<iframe src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></iframe> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> +<embed src="../plugins/test.swf" type="application/x-shockwave-flash" style="position: relative; "></embed> + +</body> + +</html> + + + + diff --git a/Source/WebCore/manual-tests/video-rtsp.html b/Source/WebCore/manual-tests/video-rtsp.html index 4fff987..f500f69 100644 --- a/Source/WebCore/manual-tests/video-rtsp.html +++ b/Source/WebCore/manual-tests/video-rtsp.html @@ -3,9 +3,7 @@ <title>RTSP playback test</title> </head> <body> -<video with=640 height=352 autoplay controls src="rtsp://a2047.v1411b.c1411.g.vq.akamaistream.net/5/2047/1411/2_h264_650/1a1a1ae454c430950065de4cbb2f94c226950c7ae655b61a48a91475e243acda3dac194879adde0f/wwdc_2006_2_650.mov"></video> -<p>Test that QuickTime file with RTSP URL loads.<p> -<script>start()</script> -<pre id="console"></pre> +<video width=400 height=300 preload=none autoplay src="rtsp://dmzosx001.dpa.act.gov.au/medium"></video> +<p>Test that RTSP URL loads.<p> </body> </html> diff --git a/Source/WebCore/manual-tests/video-statistics.html b/Source/WebCore/manual-tests/video-statistics.html new file mode 100644 index 0000000..ed9b128 --- /dev/null +++ b/Source/WebCore/manual-tests/video-statistics.html @@ -0,0 +1,79 @@ +<html> +<head><title>WebKit video playback statistics</title></head> +<body> +<!-- inspired by -- + -- http://people.mozilla.org/~cpearce/paint-stats-demo.html --> +<video src="http://movies.apple.com/movies/us/apple/ipoditunes/2007/touch/ads/apple_ipodtouch_touch_r640-9cie.mov" id="v" controls autoplay></video> +<div id="log"> + Audio bytes decoded: 0 average p/s: 0<br> + Video bytes decoded: 0 average p/s: 0<br> + Decoded frames: 0 average p/s: 0<br> + Dropped frames: 0 average p/s: 0<br> +</div> +<script> + +var decodedFrames = 0; +var decodedPerSec = 0; +var audioBytesDecoded = 0; +var audioBytesDecodedPerSec = 0; +var videoBytesDecoded = 0; +var videoBytesDecodedPerSec = 0; +var droppedFrames = 0; +var droppedFramesPerSec = 0; + +function Mean() { + this.count = 0; + this.sum = 0; + + this.record = function(val) { + this.count++; + this.sum += val; + }; + + this.mean = function() { + return this.count ? (this.sum / this.count).toFixed(3) : 0; + }; +} + + +var decodedMean = new Mean(); +var audioMean = new Mean(); +var videoMean = new Mean(); +var dropMean = new Mean(); + +function recalcRates() { + var v = document.getElementById("v"); + + if (v.readyState <= HTMLMediaElement.HAVE_CURRENT_DATA || v.paused) { + return; + } + + decodedPerSec = (v.webkitDecodedFrameCount - decodedFrames); + decodedFrames = v.webkitDecodedFrameCount; + + audioBytesDecodedPerSec = v.webkitAudioDecodedByteCount - audioBytesDecoded; + audioBytesDecoded = v.webkitAudioDecodedByteCount; + + videoBytesDecodedPerSec = v.webkitVideoDecodedByteCount - videoBytesDecoded; + videoBytesDecoded = v.webkitVideoDecodedByteCount; + + droppedFramesPerSec = v.webkitDroppedFrameCount - droppedFrames; + droppedFrames = v.webkitDroppedFrameCount; + + decodedMean.record(decodedPerSec); + audioMean.record(audioBytesDecodedPerSec); + videoMean.record(videoBytesDecodedPerSec); + dropMean.record(droppedFramesPerSec); + + var d = document.getElementById("log"); + d.innerHTML = + "Audio bytes decoded: " + v.webkitAudioDecodedByteCount + " average p/s: " + audioMean.mean() + "<br>" + + "Video bytes decoded: " + v.webkitVideoDecodedByteCount + " average p/s: " + videoMean.mean() + "<br>" + + "Decoded frames: " + v.webkitDecodedFrameCount + " average p/s: " + decodedMean.mean() + "<br>" + + "Dropped frames: " + v.webkitDroppedFrameCount + " average p/s: " + dropMean.mean() + "<br>"; +} + +setInterval(recalcRates, 1000); +</script> +</body> +</html> |