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

Unified Diff: third_party/WebKit/LayoutTests/media/video-dom-preload.html

Issue 2466273006: Allow metadata preload on cellular connections and disallow autoplay muted for low end devices. (Closed)
Patch Set: add not allowed value Created 4 years, 1 month 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/video-dom-preload.html
diff --git a/third_party/WebKit/LayoutTests/media/video-dom-preload.html b/third_party/WebKit/LayoutTests/media/video-dom-preload.html
deleted file mode 100644
index bc899787a0740c88bf4e4407d1c78a788ffe50c4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/video-dom-preload.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<title>Test media "autoplay" attribute set via DOM.</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<video></video>
-<script>
-test(function() {
- var video = document.querySelector("video");
-
- // Test default attribute value.
- assert_equals(video.preload, "auto");
- assert_equals(video.getAttribute("preload"), null);
-
- // Remove attribute, should revert to default.
- video.removeAttribute("preload");
- assert_equals(video.preload, "auto");
-
- checkPreloadValue("none", "none");
- checkPreloadValue("auto", "auto");
-
- // set to bogus value, should revert to default value.
- video.removeAttribute("preload");
- // Set via IDL attribute
- video.preload = "bogus";
- assert_equals(video.getAttribute("preload"), "bogus");
- assert_equals(video.preload, "auto");
- // - and via content attribute.
- video.setAttribute("preload", "bogus");
- assert_equals(video.preload, "auto");
- assert_equals(video.getAttribute("preload"), "bogus");
-
- checkPreloadValue("metadata", "metadata");
-
- function checkPreloadValue(value, expected) {
- // Set via IDL attribute
- video.removeAttribute("preload");
- video.preload = value;
- assert_equals(video.getAttribute("preload"), expected);
- assert_equals(video.preload, expected);
- // - and via content attribute.
- video.removeAttribute("preload");
- video.setAttribute("preload", value);
- assert_equals(video.preload, expected);
- assert_equals(video.getAttribute("preload"), expected);
- }
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698