Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1052)

Unified Diff: webkit/data/layout_tests/chrome/media/video-volume-slider.html

Issue 269100: Layout test and results for media volume slider (Closed)
Patch Set: update message Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/data/layout_tests/chrome/media/video-volume-slider.html
diff --git a/webkit/data/layout_tests/chrome/media/video-volume-slider.html b/webkit/data/layout_tests/chrome/media/video-volume-slider.html
new file mode 100644
index 0000000000000000000000000000000000000000..db1c789bbe9f353cef95d135e4bb897528f2ed83
--- /dev/null
+++ b/webkit/data/layout_tests/chrome/media/video-volume-slider.html
@@ -0,0 +1,26 @@
+<html>
+ <head>
+ <title>Test rendering of volume slider of video tag</title>
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.waitUntilDone();
+
+ function test() {
+ var video = document.getElementsByTagName("video")[0];
+
+ if (window.eventSender) {
+ x = video.offsetLeft + video.offsetWidth - 10;
+ y = video.offsetTop + video.offsetHeight - 10;
+ eventSender.mouseMoveTo(x, y);
+ }
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ }
+ </script>
+ </head>
+ <body>
+ Move mouse over the volume icon,
+ you will see a volume slider at full volume.<br>
+ <video oncanplaythrough="test()" controls src="bear.ogv"></video>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698