forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move wpt for intrinsicsize to the right directory
TBR: [email protected] Bug: 874629 Change-Id: Ia5346b73344bf33dd1446591b85acf0d6a608e9b Reviewed-on: https://chromium-review.googlesource.com/1220091 Commit-Queue: Luna Lu <[email protected]> Reviewed-by: Luna Lu <[email protected]> Cr-Commit-Position: refs/heads/master@{#590435}
- Loading branch information
Showing
9 changed files
with
92 additions
and
87 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
...tTests/external/wpt/feature-policy/experimental-features/intrinsicsize-svg-image-ref.html
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
.../external/wpt/feature-policy/experimental-features/intrinsicsize-svg-image.tentative.html
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...al/wpt/html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<body> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" width="32" height="32"/> | ||
</svg> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" width="300" height="150"/> | ||
</svg> | ||
<svg width=400 height=400> | ||
<image href="/images/background.png" width="300" height="150"/> | ||
</svg> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" width="300" height="150"/> | ||
</svg> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" height="50" width="100"/> | ||
</svg> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" width="100" height="100"/> | ||
</svg> | ||
</body> |
24 changes: 24 additions & 0 deletions
24
.../html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<link rel="match" href="intrinsicsize-svg-image-ref.html"> | ||
<meta name="assert" content="test"> | ||
<body> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png"/> | ||
</svg> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" intrinsicsize="300x150"/> | ||
</svg> | ||
<svg width=400 height=400> | ||
<image href="/images/background.png" intrinsicsize="300x150"/> | ||
</svg> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" intrinsicsize="300x150" width="300"/> | ||
</svg> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" intrinsicsize="300x150" height="50"/> | ||
</svg> | ||
<svg width=200 height=200> | ||
<image href="/images/background.png" intrinsicsize="300x150" width="100" height="100"/> | ||
</svg> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
39 changes: 39 additions & 0 deletions
39
...-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!DOCTYPE html> | ||
<body> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script> | ||
'use strict'; | ||
|
||
promise_test(async() => { | ||
var video = document.createElement('video'); | ||
document.body.appendChild(video); | ||
video.src = "/images/pattern.ogv"; | ||
await new Promise(resolve => | ||
video.addEventListener('canplaythrough', () => resolve(), {once: true})); | ||
video.intrinsicSize = '400 x 500'; | ||
assert_equals(video.getBoundingClientRect().width, 400, 'width'); | ||
assert_equals(video.getBoundingClientRect().height, 500, 'height'); | ||
assert_equals(video.videoWidth, 400, 'naturalWidth'); | ||
assert_equals(video.videoHeight, 500, 'naturalHeight'); | ||
|
||
video.width = '800'; | ||
assert_equals(video.getBoundingClientRect().width, 800, 'width'); | ||
assert_equals(video.getBoundingClientRect().height, 1000, 'height'); | ||
assert_equals(video.videoWidth, 400, 'naturalWidth'); | ||
assert_equals(video.videoHeight, 500, 'naturalHeight'); | ||
|
||
video.style = 'height:800px;'; | ||
assert_equals(video.getBoundingClientRect().width, 800, 'width'); | ||
assert_equals(video.getBoundingClientRect().height, 800, 'height'); | ||
assert_equals(video.videoWidth, 400, 'naturalWidth'); | ||
assert_equals(video.videoHeight, 500, 'naturalHeight'); | ||
|
||
video.removeAttribute('width'); | ||
assert_equals(video.getBoundingClientRect().width, 640, 'width'); | ||
assert_equals(video.getBoundingClientRect().height, 800, 'height'); | ||
assert_equals(video.videoWidth, 400, 'naturalWidth'); | ||
assert_equals(video.videoHeight, 500, 'naturalHeight'); | ||
}, 'Test intrinsicsize for html video element'); | ||
</script> | ||
</body> |
1 change: 1 addition & 0 deletions
1
...lement/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Feature-Policy: unsized-media * |