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 (28-01-2020) #25631

Merged
merged 1 commit into from Jan 29, 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.

@@ -2,3 +2,6 @@
[Hit test intersecting scaled box]
expected: FAIL

[Hit test within unscaled box]
expected: FAIL

This file was deleted.

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

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

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

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

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

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

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

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

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

[X-Content-Type-Options%3A%20%22nosniFF%22]
expected: FAIL

[X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff]
expected: FAIL

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

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

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

[Embedded credentials matching the top-level are treated as network errors for cross-origin URLs.]
expected: TIMEOUT
@@ -1,4 +1,4 @@
[traverse_the_history_5.html]
[traverse_the_history_2.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -1,5 +1,5 @@
[embedded-opener-remove-frame.html]
expected: TIMEOUT
expected: CRASH
[opener and "removed" embedded documents]
expected: FAIL

@@ -1,5 +1,6 @@
[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: FAIL
expected: TIMEOUT

@@ -1,6 +1,5 @@
[iframe_sandbox_popups_nonescaping-1.html]
type: testharness
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: NOTRUN
expected: FAIL

@@ -24,3 +24,6 @@
[[textarea\] The validity.customError must be true if the custom validity error message is not empty]
expected: FAIL

[[select\] The validity.customError must be false if the custom validity error message is empty]
expected: FAIL

@@ -1,5 +1,5 @@
[form-double-submit-3.html]
expected: ERROR
[<button> should have the same double-submit protection as <input type=submit>]
expected: FAIL
expected: TIMEOUT

This file was deleted.

@@ -0,0 +1,2 @@
[errorhandling.html]
expected: CRASH
@@ -10,3 +10,6 @@
[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

@@ -0,0 +1,10 @@
[ar_hittest_subscription_states.https.html]
[Hit test subscription succeeds if the feature was requested]
expected: FAIL

[Hit test subscription fails if the feature was not requested]
expected: FAIL

[Hit test subscription fails if the feature was requested but the session already ended]
expected: FAIL

@@ -47,7 +47,7 @@
const bitmap = await createImageBitmap(image);

assert_throws_dom('DataCloneError',
() => worker.postMessage(bitmap, [bitmap]));
() => worker.postMessage(bitmap, [bitmap]));
}, 'Transferring a non-origin-clean ImageBitmap throws.');

</script>
@@ -37,7 +37,7 @@
{}
].forEach(value => test(t => {
assert_throws_js(TypeError, () => new Blob([], {endings: value}),
'Blob constructor should throw');
'Blob constructor should throw');
}, `Invalid "endings" value: ${JSON.stringify(value)}`));

test(t => {
@@ -465,7 +465,7 @@
].forEach(arg => {
test(t => {
assert_throws_js(TypeError, () => new Blob([], arg),
'Blob constructor should throw with invalid property bag');
'Blob constructor should throw with invalid property bag');
}, `Passing ${JSON.stringify(arg)} for options should throw`);
});

@@ -37,7 +37,7 @@
{}
].forEach(value => test(t => {
assert_throws_js(TypeError, () => new File([], "name", {endings: value}),
'File constructor should throw');
'File constructor should throw');
}, `Invalid "endings" value: ${JSON.stringify(value)}`));

test(t => {
@@ -15,9 +15,9 @@

test(t => {
assert_throws_js(TypeError, () => new File(),
'Bits argument is required');
'Bits argument is required');
assert_throws_js(TypeError, () => new File([]),
'Name argument is required');
'Name argument is required');
}, 'Required arguments');

function test_first_argument(arg1, expectedSize, testName) {
@@ -65,13 +65,13 @@
].forEach(arg => {
test(t => {
assert_throws_js(TypeError, () => new File(arg, 'world.html'),
'Constructor should throw for invalid bits argument');
'Constructor should throw for invalid bits argument');
}, `Invalid bits argument: ${JSON.stringify(arg)}`);
});

test(t => {
assert_throws_js(Error, () => new File([to_string_throws], 'name.txt'),
'Constructor should propagate exceptions');
'Constructor should propagate exceptions');
}, 'Bits argument: object that throws');


@@ -132,7 +132,7 @@
].forEach(arg => {
test(t => {
assert_throws_js(TypeError, () => new File(['bits'], 'name.txt', arg),
'Constructor should throw for invalid property bag type');
'Constructor should throw for invalid property bag type');
}, `Invalid property bag: ${JSON.stringify(arg)}`);
});

@@ -151,8 +151,8 @@

test(t => {
assert_throws_js(Error,
() => new File(['bits'], 'name.txt', {type: to_string_throws}),
'Constructor should propagate exceptions');
() => new File(['bits'], 'name.txt', {type: to_string_throws}),
'Constructor should propagate exceptions');
}, 'Property bag propagates exceptions');

</script>
@@ -64,7 +64,7 @@
const store = tx.objectStore('store');
const obj = new ProbeObject();
assert_throws_dom('DataError', () => { store.put(obj); },
'put() should throw if primary key cannot be injected');
'put() should throw if primary key cannot be injected');
assert_equals(
obj.invalid_id_count, 1,
'put() operation should access primary key property once');
@@ -24,8 +24,8 @@

setTimeout(t.step_func(() => {
assert_throws_js(TypeError, () => { cursor.advance(0); },
'"zero" check (TypeError) should precede ' +
'"not active" check (TransactionInactiveError)');
'"zero" check (TypeError) should precede ' +
'"not active" check (TransactionInactiveError)');
t.done();
}), 0);
});
@@ -49,8 +49,8 @@

setTimeout(t.step_func(() => {
assert_throws_dom('TransactionInactiveError', () => { cursor.advance(1); },
'"not active" check (TransactionInactiveError) ' +
'should precede "deleted" check (InvalidStateError)');
'"not active" check (TransactionInactiveError) ' +
'should precede "deleted" check (InvalidStateError)');
t.done();
}), 0);
});
@@ -78,8 +78,8 @@

setTimeout(t.step_func(() => {
assert_throws_dom('TransactionInactiveError', () => { cursor.advance(1); },
'"not active" check (TransactionInactiveError) ' +
'should precede "got value" check (InvalidStateError)');
'"not active" check (TransactionInactiveError) ' +
'should precede "got value" check (InvalidStateError)');
t.done();
}), 0);
});
@@ -39,10 +39,10 @@

// Second try
assert_throws_dom('InvalidStateError',
function() { cursor.advance(1); }, 'second advance');
function() { cursor.advance(1); }, 'second advance');

assert_throws_dom('InvalidStateError',
function() { cursor.advance(3); }, 'third advance');
function() { cursor.advance(3); }, 'third advance');

count++;
});
@@ -60,19 +60,19 @@
var cursor = e.target.result;

assert_throws_js(TypeError,
function() { cursor.advance(document); });
function() { cursor.advance(document); });

assert_throws_js(TypeError,
function() { cursor.advance({}); });
function() { cursor.advance({}); });

assert_throws_js(TypeError,
function() { cursor.advance([]); });
function() { cursor.advance([]); });

assert_throws_js(TypeError,
function() { cursor.advance(""); });
function() { cursor.advance(""); });

assert_throws_js(TypeError,
function() { cursor.advance("1 2"); });
function() { cursor.advance("1 2"); });

t.done();
});
@@ -91,14 +91,14 @@
var cursor = e.target.result;

assert_throws_js(TypeError,
function() { cursor.advance(null); });
function() { cursor.advance(null); });

assert_throws_js(TypeError,
function() { cursor.advance(undefined); });
function() { cursor.advance(undefined); });

var myvar = null;
assert_throws_js(TypeError,
function() { cursor.advance(myvar); });
function() { cursor.advance(myvar); });

t.done();
});
@@ -117,7 +117,7 @@
var cursor = e.target.result;

assert_throws_js(TypeError,
function() { cursor.advance(); });
function() { cursor.advance(); });

t.done();
});
@@ -135,26 +135,26 @@
var cursor = e.target.result;

assert_throws_js(TypeError,
function() { cursor.advance(-1); });
function() { cursor.advance(-1); });

assert_throws_js(TypeError,
function() { cursor.advance(NaN); });
function() { cursor.advance(NaN); });

assert_throws_js(TypeError,
function() { cursor.advance(0); });
function() { cursor.advance(0); });

assert_throws_js(TypeError,
function() { cursor.advance(-0); });
function() { cursor.advance(-0); });

assert_throws_js(TypeError,
function() { cursor.advance(Infinity); });
function() { cursor.advance(Infinity); });

assert_throws_js(TypeError,
function() { cursor.advance(-Infinity); });
function() { cursor.advance(-Infinity); });

var myvar = -999999;
assert_throws_js(TypeError,
function() { cursor.advance(myvar); });
function() { cursor.advance(myvar); });

t.done();
});
@@ -179,7 +179,7 @@
}

assert_throws_js(TypeError,
function() { cursor.advance(0); });
function() { cursor.advance(0); });

cursor.advance(1);
count++;
@@ -18,7 +18,7 @@
const index = store.index('index');
[NaN, Infinity, -Infinity, -1, -Number.MAX_SAFE_INTEGER].forEach(count => {
assert_throws_js(TypeError, () => { index.getAll(null, count); },
`getAll with count ${count} count should throw TypeError`);
`getAll with count ${count} count should throw TypeError`);
});
t.done();
},
@@ -18,7 +18,7 @@
const index = store.index('index');
[NaN, Infinity, -Infinity, -1, -Number.MAX_SAFE_INTEGER].forEach(count => {
assert_throws_js(TypeError, () => { index.getAllKeys(null, count); },
`getAllKeys with count ${count} count should throw TypeError`);
`getAllKeys with count ${count} count should throw TypeError`);
});
t.done();
},
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.