Skip to content

Commit

Permalink
Update web-platform-tests to revision 6b6163867ad474d977778a3f19c378a…
Browse files Browse the repository at this point in the history
…05a4851dc
  • Loading branch information
WPT Sync Bot committed Jan 5, 2019
1 parent 3ebd42c commit 498854a
Show file tree
Hide file tree
Showing 49 changed files with 587 additions and 173 deletions.
234 changes: 175 additions & 59 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/wpt/metadata/encoding/single-byte-decoder.html.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


[single-byte-decoder.html?XMLHttpRequest]
expected: TIMEOUT
expected: CRASH
[ISO-8859-2: iso_8859-2:1987 (XMLHttpRequest)]
expected: FAIL

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,5 @@
expected: TIMEOUT

[picture: source (max-width:500px) valid image, img valid image, resize to narrow]
expected: FAIL

[picture: source (max-width:500px) broken image, img valid image, resize to narrow]
expected: FAIL

[img (srcset 1 cand) valid image, resize to narrow]
expected: FAIL

[picture: same URL in source (max-width:500px) and img, resize to narrow]
expected: FAIL

[img (srcset 1 cand) valid image, resize to wide]
expected: FAIL

[picture: same URL in source (max-width:500px) and img, resize to wide]
expected: FAIL

[picture: source (max-width:500px) valid image, img broken image, resize to wide]
expected: FAIL
expected: TIMEOUT

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[buffer-full-set-to-current-buffer.html]
expected: ERROR
[Test that entries added and event firing happened in the right sequence]
expected: FAIL
expected: TIMEOUT

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[buffer-full-store-and-clear-during-callback.html]
expected: ERROR
expected: TIMEOUT
[Test that entries overflowing the buffer trigger the buffer full event, can be stored, and find themselves in the primary buffer after it's cleared.]
expected: TIMEOUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[document-domain-no-impact-loader.sub.html]
[Finite resource timing entries buffer size]
expected: FAIL

Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
[resource-timing-level1.sub.html]
['xmlhttprequest (Potentially Cached): Immediately fetch the same URL, exercising the cache hit path (if any).]
expected: FAIL
['link responseStart uses 1XX (first) response timings']
expected: FAIL
['link 250ms delay in headers does not affect responseStart']
expected: FAIL
['script responseStart uses 1XX (first) response timings']
expected: FAIL
['iframe 250ms delay in headers does not affect responseStart']
expected: FAIL
['xmlhttprequest: 250ms delay before 'responseStart', another 250ms delay before 'responseEnd'.]
expected: FAIL

['xmlhttprequest (Redirected): 250ms delay before 'redirectEnd', another 250ms delay before 'responseStart'.]
expected: FAIL
['iframe (Populate cache): The initial request populates the cache (if appropriate).]
expected: FAIL

[No timeline entry for about:blank]
expected: FAIL

['script: 250ms delay before 'responseStart', another 250ms delay before 'responseEnd'.]
expected: FAIL
['link (Potentially Cached): Immediately fetch the same URL, exercising the cache hit path (if any).]
expected: FAIL

['xmlhttprequest 250ms delay in headers does not affect responseStart']
expected: FAIL

['link (Redirected): 250ms delay before 'redirectEnd', another 250ms delay before 'responseStart'.]
expected: FAIL
['iframe responseStart uses 1XX (first) response timings']
expected: FAIL
['script (Potentially Cached): Immediately fetch the same URL, exercising the cache hit path (if any).]
expected: FAIL

['script (Redirected): 250ms delay before 'redirectEnd', another 250ms delay before 'responseStart'.]
expected: FAIL
['script (Populate cache): The initial request populates the cache (if appropriate).]
expected: FAIL

['script 250ms delay in headers does not affect responseStart']
expected: FAIL

['xmlhttprequest (Populate cache): The initial request populates the cache (if appropriate).]
expected: FAIL
['iframe (Potentially Cached): Immediately fetch the same URL, exercising the cache hit path (if any).]
expected: FAIL

['link: 250ms delay before 'responseStart', another 250ms delay before 'responseEnd'.]
expected: FAIL
['iframe (Redirected): 250ms delay before 'redirectEnd', another 250ms delay before 'responseStart'.]
expected: FAIL

['link (Populate cache): The initial request populates the cache (if appropriate).]
expected: FAIL
['iframe: 250ms delay before 'responseStart', another 250ms delay before 'responseEnd'.]
expected: FAIL

['xmlhttprequest responseStart uses 1XX (first) response timings']
expected: FAIL

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
const result = request.result;
assert_key_equals(result[testcase.property], key,
'Property should be used as key');
});
tx.oncomplete = t.step_func(function() {
t.done();
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@

test(() => {
classAssert.propertyKeys(StorageArea.prototype, [
"constructor", "set", "get", "has", "delete", "clear",
"constructor", "set", "get", "delete", "clear",
"keys", "values", "entries", "backingStore"
], []);

classAssert.methods(StorageArea.prototype, {
set: 2,
get: 1,
has: 1,
delete: 1,
clear: 0,
keys: 0,
Expand All @@ -43,7 +42,7 @@

testWithArea(async area => {
classAssert.propertyKeys(area, [], []);
}, "Instances don't have any properties")
}, "Instances don't have any properties");

test(() => {
assert_equals(storage instanceof StorageArea, true, "instanceof");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function testWithDefaultArea(testFn, description) {
}

// These two functions take a key/value and use them to test
// set()/get()/delete()/has()/keys()/values()/entries(). The keyEqualityAsserter should be a
// set()/get()/delete()/keys()/values()/entries(). The keyEqualityAsserter should be a
// function from ./equality-asserters.js.

export function testVariousMethodsWithDefaultArea(label, key, value, keyEqualityAsserter) {
Expand All @@ -35,7 +35,6 @@ function testVariousMethodsInner(key, value, keyEqualityAsserter) {
await assertPromiseEquals(area.set(key, value), undefined, "set()", "undefined");

await assertPromiseEquals(area.get(key), value, "get()", "the set value");
await assertPromiseEquals(area.has(key), true, "has()", "true");

const keysPromise = area.keys();
assertIsPromise(keysPromise, "keys()");
Expand All @@ -58,7 +57,6 @@ function testVariousMethodsInner(key, value, keyEqualityAsserter) {
await assertPromiseEquals(area.delete(key), undefined, "delete()", "undefined");

await assertPromiseEquals(area.get(key), undefined, "get()", "undefined after deleting");
await assertPromiseEquals(area.has(key), false, "has()", "false after deleting");
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"an ArrayBuffer": [new Uint8Array([5, 6]).buffer, assertEqualArrayBuffers]
};

const methods = ["set", "get", "has", "delete"];
const methods = ["delete", "get", "set"];

for (const method of methods) {
testWithArea(async (area, t) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Async local storage: undefined keys</title>
<!-- https://github.com/domenic/async-local-storage/commit/5bf31109f37d1371f619ea33d0e2391f10e8b8f5 -->

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script type="module">
import { StorageArea } from "std:async-local-storage";
import { testWithArea } from "./helpers/als-tests.js";

testWithArea(async (area) => {
assert_equals(await area.get("key"), undefined);
}, "Get on a non-existant key returns undefined");

testWithArea(async (area) => {
await area.set("key", undefined);
assert_equals(await area.get("key"), undefined);

assert_equals((await area.keys()).length, 0, "number of keys");
assert_equals((await area.values()).length, 0, "number of values");
assert_equals((await area.entries()).length, 0, "number of entries");
}, "Setting undefined as a value when nothing was present is a no-op");

testWithArea(async (area) => {
await area.set("key", "value");
await area.set("key", undefined);

assert_equals(await area.get("key"), undefined);

assert_equals((await area.keys()).length, 0, "number of keys");
assert_equals((await area.values()).length, 0, "number of values");
assert_equals((await area.entries()).length, 0, "number of entries");
}, "Setting undefined as a value deletes what was previously there");
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function loadScripts(paths) {
}

function performChromiumSetup() {
// Make sure we are actually on Chromium.
if (!Mojo) {
// Make sure we are actually on Chromium with Mojo enabled.
if (typeof Mojo === 'undefined') {
return;
}

Expand Down
8 changes: 8 additions & 0 deletions tests/wpt/web-platform-tests/common/sleep.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import time

# sleep can be lower than requested value in some platforms: https://bugs.python.org/issue31539
# We add padding here to compensate for that.
sleep_padding = 15.0

def sleep_at_least(sleep_in_ms):
time.sleep((sleep_in_ms + sleep_padding) / 1E3);
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Background Test: background-size:cover should cover at zoom</title>
<link rel="author" title="schenney" href="mailto:schenney@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css3-background">
<link rel="match" href="reference/background-image-cover-zoomed-1-ref.html">
<style>
body {
zoom: 80%;
}
body > div {
background: #f00;
width: 504px;
height: 252px;
}

div > div {
width: 504px;
height: 252px;
background-image: url(support/40px-wide-20px-tall-green-rect.png);
background-size: cover;
background-repeat: no-repeat;
}
</style>
</head>

<body>
<div>
<div>
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<title>CSS Test Reference</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<style>
#test {
background-color: green;
width: 200px;
height: 200px;
}
</style>
<p>Test passes if there is a green 200px times 200px square.</p>
<div id="test"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!doctype html>
<title>CSS Test: border-image honors calc() lengths / percentages</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://bugzil.la/1517521">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-width">
<link rel="match" href="border-image-calc-ref.html">
<style>
#test {
background-color: red;
border: 100px solid red;
border-image-slice: 10;
border-image-source: url("support/green_color.png");
border-image-width: 100px calc(100px) calc(100%) calc(50% + 50px);
height: 0;
width: 0;
}
</style>
<p>Test passes if there is a green 200px times 200px square.</p>
<div id="test"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-slice" />
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
div {
border: 1px solid;
border-image-slice: 1;
}
div {
/* Should reset border-image-slice */
border-image: linear-gradient(black, black);
}
</style>
<div>This text should not have a border, just corner dots</div>
<script>
test(() => {
assert_equals(getComputedStyle(document.querySelector("div")).borderImageSlice, "100%");
}, "Check that the border-image shorthand resets border-image-slice to its initial value.");
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Background Test Reference</title>
<link rel="author" title="schenney" href="mailto:schenney@chromium.org">
<style>
body {
zoom: 80%;
}
body > div {
width: 504px;
height: 252px;
background-image: url(../support/40px-wide-20px-tall-green-rect.png);
background-size: cover;
background-repeat: no-repeat;
}
</style>
</head>

<body>
<div>
</div>
</body>
</html>
Loading

0 comments on commit 498854a

Please sign in to comment.