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

Unified Diff: third_party/WebKit/LayoutTests/media/mediasession/mediaimage.html

Issue 2612003002: Media Session: use dictionary instead of an interface for MediaImage. (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/mediasession/mediasessionmetadata.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/mediasession/mediaimage.html
diff --git a/third_party/WebKit/LayoutTests/media/mediasession/mediaimage.html b/third_party/WebKit/LayoutTests/media/mediasession/mediaimage.html
deleted file mode 100644
index 4effd81d8db24e8111c5c6ca1e3b383f19a1f9f7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/mediasession/mediaimage.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<title>MediaImage interface</title>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script>
- test(function() {
- var image = new MediaImage({});
- assert_not_equals(image, null);
-
- var exception = false;
- try {
- image = new MediaImage("foobar");
- } catch (e) {
- exception = true;
- }
- assert_true(exception);
-
- exception = false;
- try {
- image = new MediaImage(42);
- } catch (e) {
- exception = true;
- }
- assert_true(exception);
- }, 'Test that MediaImage is constructed using a dictionary');
-
-test (function() {
- var image = new MediaImage({
- src: 'foo', sizes: 'bar', type: 'plop'});
- assert_greater_than(image.src.indexOf('foo'), -1);
- assert_equals(image.sizes, 'bar');
- assert_equals(image.type, 'plop');
-}, 'Test the different values allowed in MediaImage init dictionary');
-
-test (function() {
- var image = new MediaImage({});
- assert_equals(image.src, document.URL);
- assert_equals(image.sizes, '');
- assert_equals(image.type, '');
-}, 'Test the default values for MediaImage');
-
-test (function() {
- var image = new MediaMetadata({ randomValueThatWillNotBeAdded: '... hopefully ;)' });
- assert_equals(image.randomValueThatWillNotBeAdded, undefined);
-}, 'Test that passing unknown values to the dictionary is a no-op');
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/mediasession/mediasessionmetadata.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698