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

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

Issue 2846713002: [Media] Added feature flag for new remote playback pipeline (Closed)
Patch Set: Fixed failing layout tests Created 3 years, 8 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/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/controls-cast-overlay-slow-fade.html
similarity index 85%
rename from third_party/WebKit/LayoutTests/media/controls-cast-overlay-slow-fade.html
rename to third_party/WebKit/LayoutTests/media/controls/controls-cast-overlay-slow-fade.html
index 2e24c469bc3924f84539f307bfb85c02ae2e1bd1..f00d299764dfefc84df8a45e563e7058d5b56d3d 100644
--- a/third_party/WebKit/LayoutTests/media/controls-cast-overlay-slow-fade.html
+++ b/third_party/WebKit/LayoutTests/media/controls/controls-cast-overlay-slow-fade.html
@@ -1,9 +1,9 @@
<!DOCTYPE html>
<title>Test that the overlay cast button fades at the right time (neither too soon nor too late).</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="media-file.js"></script>
-<script src="media-controls.js"></script>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../media-file.js"></script>
+<script src="../media-controls.js"></script>
<video loop></video>
<script>
async_test(function(t) {
@@ -11,16 +11,16 @@ async_test(function(t) {
// and no more than that plus the fadeout time. Allow 500ms margin at either side.
var hideTimeoutLowerBound = controlsMouseMovementTimeoutMs - 500;
var hideTimeoutUpperBound = controlsMouseMovementTimeoutMs + controlsFadeOutDurationMs + 500;
-
+
var video = document.querySelector("video");
- video.src = findMediaFile("video", "content/test");
-
+ video.src = findMediaFile("video", "../content/test");
+
video.onplaying = t.step_func(function() {
setTimeout(t.step_func(function() {
// Cast button should be visible
assert_true(isCastButtonVisible(), "button should exist");
}), hideTimeoutLowerBound);
-
+
setTimeout(t.step_func_done(function() {
// Cast button should be gone
assert_false(isCastButtonVisible(), "button should not exist");

Powered by Google App Engine
This is Rietveld 408576698