Skip to content

Commit

Permalink
Update web-platform-tests to revision 55351d32dd26ea3ad42a8f5973e943b…
Browse files Browse the repository at this point in the history
…a0342c812
  • Loading branch information
servo-wpt-sync committed Jan 28, 2020
1 parent 1b7223a commit 81d0cdb
Show file tree
Hide file tree
Showing 159 changed files with 2,805 additions and 963 deletions.
603 changes: 407 additions & 196 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

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

[Hit test within unscaled box]
expected: FAIL

This file was deleted.

16 changes: 11 additions & 5 deletions tests/wpt/metadata/fetch/content-type/response.window.js.ini
Expand Up @@ -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

Expand Up @@ -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

Expand Up @@ -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
Expand Down
@@ -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

Expand Down
@@ -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

Expand Up @@ -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
Expand Up @@ -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

Expand Down
@@ -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

Expand Up @@ -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>
Expand Up @@ -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 => {
Expand Down
Expand Up @@ -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`);
});

Expand Down
Expand Up @@ -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 => {
Expand Down
14 changes: 7 additions & 7 deletions tests/wpt/web-platform-tests/FileAPI/file/File-constructor.html
Expand Up @@ -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) {
Expand Down Expand Up @@ -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');


Expand Down Expand Up @@ -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)}`);
});

Expand All @@ -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>
Expand Up @@ -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');
Expand Down
Expand Up @@ -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);
});
Expand All @@ -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);
});
Expand Down Expand Up @@ -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);
});
Expand Down
Expand Up @@ -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++;
});
Expand All @@ -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();
});
Expand All @@ -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();
});
Expand All @@ -117,7 +117,7 @@
var cursor = e.target.result;

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

t.done();
});
Expand All @@ -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();
});
Expand All @@ -179,7 +179,7 @@
}

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

cursor.advance(1);
count++;
Expand Down
Expand Up @@ -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();
},
Expand Down
Expand Up @@ -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();
},
Expand Down

0 comments on commit 81d0cdb

Please sign in to comment.