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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html

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/current-pixel-density/error.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html
deleted file mode 100644
index d0329430d87bfb991c2a514fb8742631ac5f8964..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-img-element/current-pixel-density/error.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!doctype html>
-<title>img current pixel density error</title>
-<script src="../../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../../resources/testharnessreport.js"></script>
-<div id=log></div>
-<img id=ref src="404" alt="testing">
-<img srcset="404" alt="testing">
-<img srcset="404 0.5x" alt="testing">
-<img srcset="404 2x" alt="testing">
-<img srcset="404 100w" alt="testing">
-<img srcset="404 100w" sizes="500px" alt="testing">
-<picture><img src="404 100w" sizes="500px" alt="testing"></picture>
-<script>
-setup({explicit_done:true});
-onload = function() {
- var ref = document.getElementById("ref");
- var expected_width = ref.width;
- var expected_height = ref.height;
- [].forEach.call(document.images, function(img) {
- test(function() {
- assert_not_equals(expected_width, 0, 'expected_width');
- assert_not_equals(expected_height, 0, 'expected_height');
- assert_equals(img.width, expected_width, 'width');
- assert_equals(img.height, expected_height, 'height');
- assert_equals(img.naturalWidth, 0, 'naturalWidth');
- assert_equals(img.naturalHeight, 0, 'naturalHeight');
- }, img.outerHTML);
- });
- done();
-};
-</script>

Powered by Google App Engine
This is Rietveld 408576698