Skip to content

Commit

Permalink
Import wpt@c1069562f6d8ddc756d49cef659d20b7a4aca805
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium 57759fa.
With Chromium commits locally applied on WPT:
7a0d5e1 "[Mojo Blob URLs] Handle more navigation cases."


Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/18572

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

TBR=kereliuk

No-Export: true
Change-Id: I1766c08f6187cd0092515c6ab685af8cfae97eaf
Reviewed-on: https://chromium-review.googlesource.com/1073921
Commit-Queue: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Reviewed-by: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562076}
  • Loading branch information
chromium-wpt-export-bot authored and Commit Bot committed May 26, 2018
1 parent f7acd09 commit 3e96176
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 2 deletions.
1 change: 1 addition & 0 deletions third_party/WebKit/LayoutTests/TestExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -2861,6 +2861,7 @@ crbug.com/832071 virtual/service-worker-servicification/external/wpt/service-wor
crbug.com/832071 virtual/navigation-mojo-response/external/wpt/service-workers/service-worker/worker-client-id.https.html [ Failure ]

# ====== New tests from wpt-importer added here ======
crbug.com/626703 [ Mac10.12 ] external/wpt/domxpath/xml_xpath_runner.html [ Timeout ]
crbug.com/626703 external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html [ Failure ]
crbug.com/626703 external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-024.html [ Failure ]
crbug.com/626703 external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-048.html [ Failure ]
Expand Down
29 changes: 27 additions & 2 deletions third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -92981,6 +92981,18 @@
{}
]
],
"html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.html": [
[
"/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.html",
[
[
"/html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001-ref.html",
"=="
]
],
{}
]
],
"html/semantics/embedded-content/the-video-element/video_content_image.htm": [
[
"/html/semantics/embedded-content/the-video-element/video_content_image.htm",
Expand Down Expand Up @@ -151200,6 +151212,11 @@
{}
]
],
"html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001-ref.html": [
[
{}
]
],
"html/semantics/embedded-content/the-img-element/sizes/sizes-iframed.sub.html": [
[
{}
Expand Down Expand Up @@ -252828,7 +252845,7 @@
"support"
],
"./update-built-tests.sh": [
"e632acfa68de35b71b650db172ffff6d048399a7",
"75822374bec6ee3bd6b516027d57f9103629c6bd",
"support"
],
".well-known/README.md": [
Expand Down Expand Up @@ -353791,6 +353808,14 @@
"22040d8543a29c1e4f1708017096a5f9de478549",
"testharness"
],
"html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001-ref.html": [
"497a115d29e597db7ef08aff11534fd69c449130",
"support"
],
"html/semantics/embedded-content/the-img-element/sizes/sizes-dynamic-001.html": [
"c25df42c0fa9b20cfac886da13c74801c63d8d40",
"reftest"
],
"html/semantics/embedded-content/the-img-element/sizes/sizes-iframed.sub.html": [
"47e56d828d8c366a95d0ea77571a1dbcaaca3164",
"support"
Expand Down Expand Up @@ -369604,7 +369629,7 @@
"testharness"
],
"orientation-event/deviceorientationabsoluteevent.html": [
"39b8076ee3dc20b085f06d52441766389155f04b",
"8e84a1001482e0c58f402ba3bd66d2ac5cd55c10",
"testharness"
],
"orientation-event/deviceorientationevent-init.html": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!doctype html>
<title>Test reference</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<iframe width="500" height="500" srcdoc='<!doctype html><img alt="FAIL" srcset="/images/green-256x256.png 100w" style="max-width: 100%" sizes="10px">'></iframe>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!doctype html>
<html class="reftest-wait">
<title>Image intrinsic size specified via sizes attribute reacts properly to media changes</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="sizes-dynamic-001-ref.html">
<link rel="help" href="https://html.spec.whatwg.org/#sizes-attributes">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1149357">
<script>
function frameLoaded(frame) {
frame.width = "500";
let img = frame.contentDocument.querySelector('img');

// Trigger the viewport resize, which will trigger the image load task.
img.offsetWidth;

// Wait for the image load task to run.
setTimeout(() => document.documentElement.removeAttribute("class"), 0);
}
</script>
<iframe onload="frameLoaded(this)" width="200" height="500" srcdoc='<!doctype html><img srcset="/images/green-256x256.png 100w" style="max-width: 100%" sizes="(min-width: 400px) 10px, 20px">'></iframe>
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ infrastructure/assumptions/tools/build.sh
html/tools/build.sh
offscreen-canvas/tools/build.sh
python mimesniff/mime-types/resources/generated-mime-types.py

# Infrastucture
python wpt make-tasks

0 comments on commit 3e96176

Please sign in to comment.