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

Unified Diff: third_party/WebKit/LayoutTests/media/controls-cast-overlay-slow-fade.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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: third_party/WebKit/LayoutTests/media/controls-cast-overlay-slow-fade.html
diff --git a/third_party/WebKit/LayoutTests/media/controls-cast-overlay-slow-fade.html b/third_party/WebKit/LayoutTests/media/controls-cast-overlay-slow-fade.html
index 03bad40da543de9c8bc3b03b1d3bed9ba862f935..a5a421507c63a8e8534c8925f29582062df38839 100644
--- a/third_party/WebKit/LayoutTests/media/controls-cast-overlay-slow-fade.html
+++ b/third_party/WebKit/LayoutTests/media/controls-cast-overlay-slow-fade.html
@@ -6,6 +6,8 @@
<script src="../resources/testharnessreport.js"></script>
<script src="media-file.js"></script>
<script src="media-controls.js"></script>
+ <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
+ (Please avoid writing new tests using video-test.js) -->
<script src="video-test.js"></script>
</head>
<body>
@@ -13,7 +15,7 @@
<script>
var controls;
var test;
- // The cast button should be visible for at least the controlsMouseMovementTimeout, and no more
+ // The cast button should be visible for at least the controlsMouseMovementTimeout, and no more
// than that plus the fadeout time. Allow 500ms margin at either side.
var hideTimeoutLowerBound = controlsMouseMovementTimeoutMs - 500;
var hideTimeoutUpperBound = controlsMouseMovementTimeoutMs + controlsFadeOutDurationMs + 500;
@@ -27,7 +29,7 @@
{
findMediaElement();
video.src = findMediaFile("video", "content/test");
- video.addEventListener("playing", t.step_func(function()
+ video.addEventListener("playing", t.step_func(function()
{
setTimeout(t.step_func(function()
{
@@ -56,4 +58,4 @@
});
</script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698