Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync WPT with upstream (05-03-2020) #25902

Merged
merged 1 commit into from Mar 5, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Large diffs are not rendered by default.

@@ -0,0 +1,4 @@
[hit-test-floats-002.html]
[Hit test float]
expected: FAIL

@@ -0,0 +1,4 @@
[hit-test-floats-004.html]
[Miss float below something else]
expected: FAIL

This file was deleted.

@@ -0,0 +1,16 @@
[AnimationEffect-updateTiming.tentative.html]
[AnimationEffect.updateTiming({ delay, fill }) causes changes to the animation-delay and animation-fill-mode to be ignored]
expected: FAIL

[AnimationEffect.updateTiming({ duration }) causes changes to the animation-duration to be ignored]
expected: FAIL

[AnimationEffect.updateTiming({ iterations, direction }) causes changes to the animation-iteration-count and animation-direction to be ignored]
expected: FAIL

[AnimationEffect properties that do not map to animation-* properties should not be changed when animation-* style is updated]
expected: FAIL

[AnimationEffect.updateTiming() does override to changes from animation-* properties if there is an error]
expected: FAIL

@@ -17,3 +17,6 @@
[Setting a null effect on a running animation fires an animationend event]
expected: FAIL

[Replacing the effect of a CSSAnimation causes subsequent changes to corresponding animation-* properties to be ignored]
expected: FAIL

@@ -17,3 +17,21 @@
[play() is overridden by later setting "animation-play-state: paused"]
expected: FAIL

[reverse() overrides animation-play-state when it starts playing the animation]
expected: FAIL

[Setting the startTime to non-null does NOT override the animation-play-state if the animation is already running]
expected: FAIL

[reverse() does NOT override animation-play-state if the animation is already running]
expected: FAIL

[Setting the startTime to null overrides animation-play-state if the animation is already running]
expected: FAIL

[Setting the startTime to non-null overrides animation-play-state if the animation is paused]
expected: FAIL

[play() does NOT override the animation-play-state if there was an error]
expected: FAIL

@@ -71,3 +71,6 @@
[KeyframeEffect.getKeyframes() returns expected values for animations with CSS variables as keyframe values in a shorthand property]
expected: FAIL

[KeyframeEffect.getKeyframes() reflects changes to @keyframes rules]
expected: FAIL

@@ -0,0 +1,10 @@
[KeyframeEffect-setKeyframes.tentative.html]
[KeyframeEffect.setKeyframes() causes subsequent changes to animation-timing-function to be ignored]
expected: FAIL

[KeyframeEffect.setKeyframes() causes subsequent changes to @keyframes rules to be ignored]
expected: FAIL

[KeyframeEffect.setKeyframes() should NOT cause subsequent changes to @keyframes rules to be ignored if it threw]
expected: FAIL

@@ -1,2 +1,2 @@
[no-transition-from-ua-to-blocking-stylesheet.html]
expected: FAIL
expected: TIMEOUT
@@ -335,3 +335,63 @@
[round(to-zero, -18px, 10px) should be used-value-equivalent to -10px]
expected: FAIL

[round(to-zero, 5, infinity) should equal 0⁺.]
expected: FAIL

[round(up, -1, infinity should equal 0⁻.]
expected: FAIL

[round(to-zero, -5, infinity) should equal 0⁻.]
expected: FAIL

[round(up, -1 * 0, infinity should equal 0⁻.]
expected: FAIL

[round(up, 0, infinity) should equal 0⁺.]
expected: FAIL

[round(down, -1, infinity) should equal -Infinity.]
expected: FAIL

[round(down, -1 * 0, infinity) should equal 0⁻.]
expected: FAIL

[round(infinity, 5) should equal +Infinity.]
expected: FAIL

[round(-infinity, 5) should equal -Infinity.]
expected: FAIL

[round(down, 0, infinity) should equal 0⁺.]
expected: FAIL

[round(-infinity, -5) should equal -Infinity.]
expected: FAIL

[round(down, 1, infinity) should equal 0⁺.]
expected: FAIL

[round(5, infinity) should equal 0⁺.]
expected: FAIL

[round(up, 1, infinity) should equal +Infinity.]
expected: FAIL

[round(infinity, -5) should equal +Infinity.]
expected: FAIL

[round(5, -infinity) should equal 0⁺.]
expected: FAIL

[round(to-zero, -5, -infinity) should equal 0⁻.]
expected: FAIL

[round(to-zero, 5, -infinity) should equal 0⁺.]
expected: FAIL

[round(-5, -infinity) should equal 0⁻.]
expected: FAIL

[round(-5, infinity) should equal 0⁻.]
expected: FAIL

@@ -0,0 +1,4 @@
[CaretPosition-001.html]
[Element at (400, 100)]
expected: FAIL

@@ -2,6 +2,3 @@
[listeners are called when <iframe> is resized]
expected: FAIL

[listeners are called correct number of times]
expected: FAIL

@@ -312,18 +312,24 @@
[fetch(): separate response Content-Type: text/plain ]
expected: NOTRUN

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

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

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

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

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

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

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

@@ -56,6 +56,3 @@
[separate text/javascript x/x]
expected: FAIL

[separate text/javascript;charset=windows-1252 text/javascript]
expected: FAIL

@@ -11,9 +11,3 @@
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
expected: FAIL

[X-Content-Type-Options%3A%20%40%23%24%23%25%25%26%5E%26%5E*()()11!%2Cnosniff]
expected: FAIL

[Content-Type-Options%3A%20nosniff]
expected: FAIL

@@ -0,0 +1,4 @@
[traverse_the_history_1.html]
[Multiple history traversals from the same task]
expected: FAIL

This file was deleted.

@@ -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
@@ -32,3 +32,6 @@
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 42281 more errors.\n\tMax AbsError of 1.9986916780471802e+0 at index of 17995.\n\t[17995\]\t9.9994289875030518e-1\t-9.9874877929687500e-1\t1.9986916780471802e+0\t2.0011956154322119e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 12348.\n\t[12348\]\t9.5105654001235962e-1\t0.0000000000000000e+0\t9.5105654001235962e-1\tInfinity\t3.0517578125000000e-5\n]
expected: FAIL

[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 44043 more errors.\n\tMax AbsError of 1.9962286949157715e+0 at index of 32177.\n\t[32177\]\t9.9879217147827148e-1\t-9.9743652343750000e-1\t1.9962286949157715e+0\t2.0013591321441684e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 14112.\n\t[14112\]\t-9.5105654001235962e-1\t0.0000000000000000e+0\t9.5105654001235962e-1\tInfinity\t3.0517578125000000e-5\n]
expected: FAIL

@@ -170,3 +170,9 @@
[X SNR (-254.56109005477157 dB) is not greater than or equal to 65.737. Got -254.56109005477157.]
expected: FAIL

[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[19030\]\t-1.5346258564356873e+24\t-7.3546999692916870e-1\t1.5346258564356873e+24\t2.0865920606459265e+24\t3.8985999999999999e-3\n\t[19031\]\t-3.6017334461212158e-1\t-6.9157749414443970e-1\t3.3140414953231812e-1\t4.7920030992665957e-1\t3.8985999999999999e-3\n\t[38059\]\t-3.0465973817666023e+24\t-9.8956179618835449e-1\t3.0465973817666023e+24\t3.0787338329972360e+24\t3.8985999999999999e-3\n\t[38060\]\t-8.8409073650836945e-2\t-9.9664616584777832e-1\t9.0823709219694138e-1\t9.1129341918891205e-1\t3.8985999999999999e-3\n\tMax AbsError of 3.0465973817666023e+24 at index of 38059.\n\tMax RelError of 3.0787338329972360e+24 at index of 38059.\n]
expected: FAIL

[X SNR (-447.224261749694 dB) is not greater than or equal to 65.737. Got -447.224261749694.]
expected: FAIL

@@ -0,0 +1,10 @@
[suspended-context-messageport.https.html]
[offline before start]
expected: FAIL

[offline on complete]
expected: FAIL

[realtime suspended]
expected: FAIL

@@ -101,6 +101,16 @@ function assert_key_equals(actual, expected, description) {
assert_equals(indexedDB.cmp(actual, expected), 0, description);
}

// Usage:
// indexeddb_test(
// (test_object, db_connection, upgrade_tx, open_request) => {
// // Database creation logic.
// },
// (test_object, db_connection, open_request) => {
// // Test logic.
// test_object.done();
// },
// 'Test case description');
function indexeddb_test(upgrade_func, open_func, description, options) {
async_test(function(t) {
options = Object.assign({upgrade_will_abort: false}, options);
@@ -189,3 +199,13 @@ function keep_alive(tx, store_name) {
keepSpinning = false;
};
}

// Returns a new function. After it is called |count| times, |func|
// will be called.
function barrier_func(count, func) {
let n = 0;
return () => {
if (++n === count)
func();
};
}
@@ -0,0 +1,72 @@
// META: script=support.js

indexeddb_test(
(t, db) => {
const store = db.createObjectStore('store');
},

(t, db1) => {
// Open a second connection to the same database.
const open_request = indexedDB.open(db1.name);
open_request.onerror = t.unreached_func('open() should succeed');
open_request.onupgradeneeded =
t.unreached_func('second connection should not upgrade');
open_request.onsuccess = t.step_func(() => {
const db2 = open_request.result;
t.add_cleanup(() => { db2.close(); });

const transaction1 = db1.transaction('store', 'readwrite');
transaction1.onabort = t.unreached_func('transaction1 should complete');

const transaction2 = db2.transaction('store', 'readwrite');
transaction2.onabort = t.unreached_func('transaction2 should complete');

let transaction1PutSuccess = false;
let transaction1Complete = false;
let transaction2PutSuccess = false;

// Keep transaction1 alive for a while and ensure transaction2
// doesn't start.

let count = 0;
(function doTransaction1Put() {
const request = transaction1.objectStore('store').put(1, count++);
request.onerror = t.unreached_func('request should succeed');
request.onsuccess = t.step_func(evt => {
transaction1PutSuccess = true;
if (count < 5) {
doTransaction1Put();
}
});
}());

transaction1.oncomplete = t.step_func(evt => {
transaction1Complete = true;
assert_false(
transaction2PutSuccess,
'transaction1 should complete before transaction2 put succeeds');
});

const request = transaction2.objectStore('store').put(2, 0);
request.onerror = t.unreached_func('request should succeed');
request.onsuccess = t.step_func(evt => {
transaction2PutSuccess = true;
assert_true(
transaction1Complete,
'transaction2 put should not succeed before transaction1 completes');
});

transaction2.oncomplete = t.step_func_done(evt => {
assert_true(
transaction1PutSuccess,
'transaction1 put should succeed before transaction2 runs');
assert_true(
transaction1Complete,
'transaction1 should complete before transaction2 runs');
assert_true(
transaction2PutSuccess,
'transaction2 put should succeed before transaction2 completes');
});
});
},
"Check that readwrite transactions with overlapping scopes do not run in parallel.");
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.