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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/srcset/common.js

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/srcset/common.js
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/srcset/common.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/srcset/common.js
deleted file mode 100644
index d4d2c7534c7fadac56a59a09455180f57697a6d9..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/srcset/common.js
+++ /dev/null
@@ -1,25 +0,0 @@
-setup({explicit_done:true});
-
-function check(img) {
- var name = format_value(img.getAttribute('srcset'));
- if (img.hasAttribute('sizes')) {
- name += ' sizes=' + format_value(img.getAttribute('sizes'));
- }
- if (img.hasAttribute('data-desc')) {
- name += ' (' + img.getAttribute('data-desc') + ')';
- }
- test(function() {
- var expect = img.dataset.expect;
- if ('resolve' in img.dataset) {
- var a = document.createElement('a');
- a.href = expect;
- expect = a.href;
- }
- assert_equals(img.currentSrc, expect);
- }, name);
-}
-
-onload = function() {
- [].forEach.call(document.images, check);
- done();
-};

Powered by Google App Engine
This is Rietveld 408576698