Skip to content
Permalink
Browse files

Update web-platform-tests to revision 3488a5a845bec08943f66974e9f0df4…

…ffe96774a
  • Loading branch information
servo-wpt-sync committed Jan 6, 2020
1 parent 0d142be commit cc9937a2b08302e5bb44255bdd94df546fdb1316
Showing with 303 additions and 148 deletions.
  1. +37 −11 tests/wpt/metadata/MANIFEST.json
  2. +4 −0 tests/wpt/metadata/css/cssom-view/elementFromPoint-001.html.ini
  3. +4 −0 tests/wpt/metadata/css/cssom-view/getClientRects-inline-inline-child.html.ini
  4. +5 −8 tests/wpt/metadata/fetch/content-type/response.window.js.ini
  5. +1 −1 tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini
  6. +5 −2 tests/wpt/metadata/fetch/security/embedded-credentials.tentative.sub.html.ini
  7. +1 −1 ...history/the-history-interface/{traverse_the_history_2.html.ini → traverse_the_history_3.html.ini}
  8. +4 −0 ...-for-creating-and-navigating-browsing-contexts-by-name/creating_browsing_context_test_01.html.ini
  9. +0 −4 .../wpt/metadata/html/interaction/focus/the-autofocus-attribute/skip-document-with-fragment.html.ini
  10. +1 −2 ...data/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html.ini
  11. +0 −3 tests/wpt/metadata/performance-timeline/webtiming-resolution.any.js.ini
  12. +0 −1 tests/wpt/metadata/resource-timing/crossorigin-sandwich-TAO.sub.html.ini
  13. +0 −1 tests/wpt/metadata/workers/semantics/multiple-workers/005.html.ini
  14. +14 −0 tests/wpt/web-platform-tests/css/css-multicol/change-intrinsic-width.html
  15. +52 −0 tests/wpt/web-platform-tests/css/cssom-view/getClientRects-inline-inline-child.html
  16. +10 −10 tests/wpt/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valid.html
  17. +38 −38 ...pt/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valueMissing.html
  18. +63 −48 tests/wpt/web-platform-tests/html/semantics/forms/constraints/support/validator.js
  19. +9 −0 tests/wpt/web-platform-tests/resources/chromium/nfc-mock.js
  20. +4 −2 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/browsers/firefox_android.py
  21. +3 −2 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/executormarionette.py
  22. +2 −1 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/test-wait.js
  23. +10 −11 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/font.py
  24. +1 −0 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptrunner.py
  25. +23 −0 tests/wpt/web-platform-tests/web-nfc/NDEFReader_scan.https.html
  26. +12 −2 tests/wpt/web-platform-tests/web-nfc/NDEFWriter_push.https.html
{}
]
],
"css/css-multicol/change-intrinsic-width.html": [
[
"css/css-multicol/change-intrinsic-width.html",
[
[
"/css/reference/ref-filled-green-100px-square.xht",
"=="
]
],
{}
]
],
"css/css-multicol/column-count-used-001.html": [
[
"css/css-multicol/column-count-used-001.html",
{}
]
],
"css/cssom-view/getClientRects-inline-inline-child.html": [
[
"css/cssom-view/getClientRects-inline-inline-child.html",
{}
]
],
"css/cssom-view/historical.html": [
[
"css/cssom-view/historical.html",
"434dc52ea3d731bd1393270372294cd007382e59",
"testharness"
],
"css/css-multicol/change-intrinsic-width.html": [
"3df3e1ebc8f9b5780dc858a878bca13dbedcdb35",
"reftest"
],
"css/css-multicol/column-count-used-001.html": [
"2949a1996ebae0c48329906ea7ef34c83080e90f",
"reftest"
"f1f6fc5abc679d087d221573456eb9219d1a405c",
"testharness"
],
"css/cssom-view/getClientRects-inline-inline-child.html": [
"9a03ccdbccc80d8a0ce6f701aeaa802b1b4715e4",
"testharness"
],
"css/cssom-view/getClientRects-inline.html": [
"415e34a6f0430e08441ee32b3f7c0ca8cd11a692",
"reftest"
"testharness"
],
"html/semantics/forms/constraints/form-validation-validity-valid.html": [
"cec5dcbf0d5cfb340e100a82e723e1d620d16399",
"03655ffd2f5ba24b30e6864c8393ecbf36230aef",
"testharness"
],
"html/semantics/forms/constraints/form-validation-validity-valueMissing.html": [
"3c9e4c4cb096bbe93b540c3f704d0d116a055aba",
"2e1c666436a19bc759026ebf55df4a17073ecb5d",
"testharness"
],
"html/semantics/forms/constraints/form-validation-willValidate.html": [
"testharness"
],
"html/semantics/forms/constraints/support/validator.js": [
"48c3a5b40e6bbe06b18dde7f473188a827b7de6a",
"33508fb3289be3736f6f467957dc6614bec2bc9b",
"support"
],
"html/semantics/forms/constraints/tooLong-input-email-delete-manual.html": [
"support"
],
"resources/chromium/nfc-mock.js": [
"4bafc9b0ad8f7f8ad4185914fffef16949695ab3",
"2c1724b7592eb1d6e66177544998abbec70fbfe6",
"support"
],
"resources/chromium/sensor.mojom.js": [
"support"
],
"tools/wptrunner/wptrunner/browsers/firefox_android.py": [
"33b5d51e54e82adb6cdbe4612263bc30883dd108",
"fee528071f68843ab056f513295146685f8f78f4",
"support"
],
"tools/wptrunner/wptrunner/browsers/ie.py": [
"support"
],
"tools/wptrunner/wptrunner/executors/executormarionette.py": [
"59f7e865a5b8711fa71c9c8955eca731e0048c3f",
"01306397db7944cd0dfadf8f1bf0327dbacf94d6",
"support"
],
"tools/wptrunner/wptrunner/executors/executoropera.py": [
"support"
],
"tools/wptrunner/wptrunner/executors/test-wait.js": [
"8a7edb79d62256eef63c71eabd450d42bce7c4d2",
"ad08ad7d76fb0299aadedb572193c38c5055e654",
"support"
],
"tools/wptrunner/wptrunner/executors/testharness_servodriver.js": [
"support"
],
"tools/wptrunner/wptrunner/font.py": [
"6647a8580be7ab4050bbd37593b2e6595bc3ac72",
"daf0a1c1bfa221aa47981d93239021e4aefa74a9",
"support"
],
"tools/wptrunner/wptrunner/formatters/__init__.py": [
"support"
],
"tools/wptrunner/wptrunner/wptrunner.py": [
"7409dc26560af0be3a397bb73184137d8715811f",
"75ce104c7cee335afa2e86592caa2c4caa473bcf",
"support"
],
"tools/wptrunner/wptrunner/wpttest.py": [
"manual"
],
"web-nfc/NDEFReader_scan.https.html": [
"a9b1d7516173418243c630817eea22fd0bed2046",
"17b9fdb8569db230c3a3ded22e0258e4f73a69fc",
"testharness"
],
"web-nfc/NDEFReader_scan_filter.https.html": [
"manual"
],
"web-nfc/NDEFWriter_push.https.html": [
"4ff0af8fb0b3947595bdf48015ebabce165003ba",
"cb6b3941410035c5c5736e13d59fbbfb85f0d4cc",
"testharness"
],
"web-nfc/README.md": [
@@ -0,0 +1,4 @@
[elementFromPoint-001.html]
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

@@ -0,0 +1,4 @@
[getClientRects-inline-inline-child.html]
[sub element in a child inline box should not be included]
expected: FAIL

@@ -309,9 +309,6 @@
[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
expected: FAIL

@@ -324,15 +321,15 @@
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL

[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL

[fetch(): separate response Content-Type: text/plain ]
expected: NOTRUN

[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL

[<iframe>: separate response Content-Type: text/html */*]
expected: FAIL

[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
expected: FAIL

@@ -11,6 +11,6 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL

[X-Content-Type-Options%3A%20'NosniFF']
[X-Content-Type-Options%3A%20%2Cnosniff]
expected: FAIL

@@ -8,8 +8,11 @@
expected: FAIL

[Embedded credentials are treated as network errors in new windows.]
expected: TIMEOUT
expected: FAIL

[Embedded credentials matching the top-level are treated as network errors for cross-origin URLs.]
expected: FAIL
expected: TIMEOUT

[Embedded credentials matching the top-level are not treated as network errors for relative URLs.]
expected: TIMEOUT

@@ -1,4 +1,4 @@
[traverse_the_history_2.html]
[traverse_the_history_3.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -0,0 +1,4 @@
[creating_browsing_context_test_01.html]
[first argument: absolute url]
expected: FAIL

@@ -1,8 +1,4 @@
[skip-document-with-fragment.html]
expected: TIMEOUT
[Autofocus elements in iframed documents with URL fragments should be skipped.]
expected: FAIL

[Autofocus elements in top-level browsing context's documents with URI fragments should be skipped.]
expected: TIMEOUT
@@ -1,6 +1,5 @@
[iframe_sandbox_popups_escaping-3.html]
type: testharness
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT
expected: FAIL

@@ -10,6 +10,3 @@
[Verifies the resolution of entry.startTime is at least 20 microseconds.]
expected: TIMEOUT

[Verifies the resolution of performance.now() is at least 5 microseconds.]
expected: FAIL

@@ -1,5 +1,4 @@
[crossorigin-sandwich-TAO.sub.html]
expected: ERROR
[There should be one entry.]
expected: FAIL

@@ -1,5 +1,4 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#pseudo-algorithm">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1037790">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="columns:2; column-fill:auto; column-gap:0; width:fit-content; height:100px; background:red;">
<div id="firstChild" style="width:200px; height:100px; background:green;"></div>
<div style="width:50px; height:100px; background:green;"></div>
</div>
<script>
document.body.offsetTop;
firstChild.style.width = "50px";
</script>
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<div>
<span>test</span>
<span id="vertical-align-sub-as-grand-child"
title="sub element in a child inline box should not be included">
<span>
<sub class="not-include" style="vertical-align: sub">subscript</sub>
</span>
</span>
<span>test</span>
</div>
<script>
testTargetDoesNotInclude('vertical-align-sub-as-grand-child');

function testTargetDoesNotInclude(target) {
target = document.getElementById(target);
test(() => {
let target_rects = target.getClientRects();

let not_include_rects = [];
for (let element of target.querySelectorAll('.not-include')) {
for (let rect of element.getClientRects())
not_include_rects.push(rect);
}
for (let rect of target_rects) {
for (let not_include_rect of not_include_rects) {
assert_rect_not_equals(rect, not_include_rect);
}
}
}, target.title);
}

function assert_rect_not_equals(rect1, rect2) {
assert_false(rectEquals(rect1, rect2),
`${rectToString(rect1)} and ${rectToString(rect2)} are not equal`);
}

function rectEquals(rect1, rect2) {
return rect1.x === rect2.x && rect1.y === rect2.y &&
rect1.width === rect2.width && rect1.height === rect2.height;
}

function rectToString(rect) {
return `{${rect.x}, ${rect.y} ${rect.width}x${rect.height}}`;
}
</script>
</body>

0 comments on commit cc9937a

Please sign in to comment.
You can’t perform that action at this time.