Skip to content

Commit

Permalink
Auto merge of #9738 - servo:wpt-20160224, r=Ms2ger
Browse files Browse the repository at this point in the history
Update web-platform-tests to revision 7ed49cff4d031720f829c01df837ed7a09ad5c60

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9738)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Feb 24, 2016
2 parents 33f0040 + 62a9beb commit 2fcf1a2
Show file tree
Hide file tree
Showing 220 changed files with 8,623 additions and 559 deletions.
771 changes: 708 additions & 63 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

Expand Up @@ -2,3 +2,4 @@
type: testharness
[Timeout test: timeout hit before load, timeout scheduled at 2000]
expected: FAIL

1 change: 1 addition & 0 deletions tests/wpt/metadata/cors/redirect-origin.htm.ini
Expand Up @@ -131,3 +131,4 @@

[remote (null) to local (*), expect to fail]
expected: FAIL

@@ -1,5 +1,5 @@
[scroll-frag-percent-encoded.html]
type: testharness

[Fragment Navigation: fragment id should be percent-decoded]
expected: FAIL

@@ -1,5 +1,5 @@
[scroll-to-anchor-name.html]
type: testharness

[Fragment Navigation: scroll to anchor name is lower priority than equal id]
expected: FAIL

@@ -1,5 +1,5 @@
[scroll-to-id-top.html]
type: testharness

[Fragment Navigation: TOP is a valid element id, which overrides navigating to top of the document]
expected: FAIL

@@ -1,5 +1,5 @@
[scroll-to-top.html]
type: testharness

[Fragment Navigation: When fragid is TOP scroll to the top of the document]
expected: FAIL

Expand Up @@ -12,3 +12,6 @@
[Dynamic name]
expected: FAIL

[duplicate property names]
expected: FAIL

15 changes: 12 additions & 3 deletions tests/wpt/metadata/html/dom/interfaces.html.ini
Expand Up @@ -8889,9 +8889,6 @@
[HTMLAreaElement interface: document.createElement("area") must inherit property "hash" with the proper type (19)]
expected: FAIL
[Location interface: window.location must have own property "origin"]
expected: FAIL
[Location interface: calling replace(USVString) on window.location with too few arguments must throw TypeError]
expected: FAIL
Expand Down Expand Up @@ -9090,3 +9087,15 @@
[History interface: window.history must inherit property "replaceState" with the proper type (7)]
expected: FAIL
[HTMLAllCollection interface: attribute length]
expected: FAIL
[HTMLAllCollection interface: document.all must inherit property "length" with the proper type (0)]
expected: FAIL
[HTMLAllCollection interface: document.all must inherit property "item" with the proper type (2)]
expected: FAIL
[HTMLAllCollection interface: document.all must inherit property "namedItem" with the proper type (3)]
expected: FAIL
21 changes: 12 additions & 9 deletions tests/wpt/metadata/html/dom/reflection-embedded.html.ini
Expand Up @@ -846,9 +846,6 @@
[img.crossOrigin: IDL set to "\\0" followed by IDL get]
expected: FAIL

[img.crossOrigin: IDL set to null followed by IDL get]
expected: FAIL

[img.crossOrigin: IDL set to object "test-toString" followed by getAttribute()]
expected: FAIL

Expand Down Expand Up @@ -10101,9 +10098,6 @@
[video.crossOrigin: IDL set to "\\0" followed by IDL get]
expected: FAIL

[video.crossOrigin: IDL set to null followed by IDL get]
expected: FAIL

[video.crossOrigin: IDL set to object "test-toString" followed by getAttribute()]
expected: FAIL

Expand Down Expand Up @@ -12423,9 +12417,6 @@
[audio.crossOrigin: IDL set to "\\0" followed by IDL get]
expected: FAIL

[audio.crossOrigin: IDL set to null followed by IDL get]
expected: FAIL

[audio.crossOrigin: IDL set to object "test-toString" followed by getAttribute()]
expected: FAIL

Expand Down Expand Up @@ -22113,3 +22104,15 @@
[video.height: IDL set to 4294967295 followed by IDL get]
expected: FAIL

[img.crossOrigin: IDL set to "" followed by IDL get]
expected: FAIL

[img.crossOrigin: IDL set to null followed by getAttribute()]
expected: FAIL

[video.crossOrigin: IDL set to null followed by getAttribute()]
expected: FAIL

[audio.crossOrigin: IDL set to null followed by getAttribute()]
expected: FAIL

6 changes: 3 additions & 3 deletions tests/wpt/metadata/html/dom/reflection-misc.html.ini
Expand Up @@ -1947,9 +1947,6 @@
[script.crossOrigin: IDL set to "\\0" followed by IDL get]
expected: FAIL

[script.crossOrigin: IDL set to null followed by IDL get]
expected: FAIL

[script.crossOrigin: IDL set to object "test-toString" followed by getAttribute()]
expected: FAIL

Expand Down Expand Up @@ -12999,3 +12996,6 @@
[dialog.itemId: IDL set to object "test-valueOf" followed by IDL get]
expected: FAIL

[script.crossOrigin: IDL set to null followed by getAttribute()]
expected: FAIL

@@ -0,0 +1,6 @@
[update-media.html]
type: testharness
expected: TIMEOUT
[set media after src updates selected image]
expected: TIMEOUT

Expand Up @@ -903,3 +903,66 @@
[change state from button to color]
expected: FAIL

[change state from hidden to file]
expected: FAIL

[change state from text to file]
expected: FAIL

[change state from search to file]
expected: FAIL

[change state from tel to file]
expected: FAIL

[change state from url to file]
expected: FAIL

[change state from email to file]
expected: FAIL

[change state from password to file]
expected: FAIL

[change state from datetime to file]
expected: FAIL

[change state from date to file]
expected: FAIL

[change state from month to file]
expected: FAIL

[change state from week to file]
expected: FAIL

[change state from time to file]
expected: FAIL

[change state from number to file]
expected: FAIL

[change state from range to file]
expected: FAIL

[change state from color to file]
expected: FAIL

[change state from checkbox to file]
expected: FAIL

[change state from radio to file]
expected: FAIL

[change state from submit to file]
expected: FAIL

[change state from image to file]
expected: FAIL

[change state from reset to file]
expected: FAIL

[change state from button to file]
expected: FAIL

@@ -0,0 +1,5 @@
[indeterminate-radio.html]
type: testharness
[:indeterminate and input type=radio]
expected: FAIL

2 changes: 1 addition & 1 deletion tests/wpt/metadata/mozilla-sync
@@ -1 +1 @@
5942e9e3cb2fb588eb82198fd5548a42303a559f
33f0040496bde88683cfadb4068183f7d08a5f1c
28 changes: 18 additions & 10 deletions tests/wpt/web-platform-tests/IndexedDB/idbfactory_open9.htm
Expand Up @@ -2,7 +2,6 @@
<title>IDBFactory.open() - errors in version argument</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=support.js></script>

<script>
function should_throw(val, name) {
Expand All @@ -26,7 +25,6 @@
should_throw(Infinity)
should_throw(-Infinity)
should_throw("foo")
should_throw(undefined)
should_throw(null)
should_throw(false)

Expand All @@ -46,17 +44,27 @@

/* Valid */

function should_work(val) {
function should_work(val, expected_version) {
var name = format_value(val);
var t = async_test("Calling open() with version argument " + name + " should not throw.")
var rq = createdb(t, val)
rq.onupgradeneeded = function() {
t.done()
}
var dbname = 'test-db-does-not-exist';
async_test(function(t) {
window.indexedDB.deleteDatabase(dbname);
var rq = window.indexedDB.open(dbname, val);
rq.onupgradeneeded = t.step_func(function() {
var db = rq.result;
assert_equals(db.version, expected_version, 'version');
rq.transaction.abort();
});
rq.onsuccess = t.unreached_func("open should fail");
rq.onerror = t.step_func(function() {
t.done()
});
}, "Calling open() with version argument " + name + " should not throw.")
}

should_work(1.5)
should_work(Number.MAX_SAFE_INTEGER) // 0x20000000000000 - 1
should_work(1.5, 1)
should_work(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER) // 0x20000000000000 - 1
should_work(undefined, 1)

</script>

Expand Down
10 changes: 2 additions & 8 deletions tests/wpt/web-platform-tests/IndexedDB/idbobjectstore_add16.htm
Expand Up @@ -17,15 +17,9 @@
db = event.target.result;
ostore = db.createObjectStore("store", {keyPath:"pKey"});
db.deleteObjectStore("store");
}

open_rq.onsuccess = function (event) {
t.step(function(){
assert_throws("InvalidStateError", function(){
ostore.add({ pKey: "primaryKey_0"});
});
assert_throws("InvalidStateError", function(){
ostore.add({ pKey: "primaryKey_0"});
});
t.done();
}
</script>

10 changes: 2 additions & 8 deletions tests/wpt/web-platform-tests/IndexedDB/idbobjectstore_clear4.htm
Expand Up @@ -17,15 +17,9 @@
db = event.target.result;
ostore = db.createObjectStore("store", {keyPath:"pKey"});
db.deleteObjectStore("store");
}

open_rq.onsuccess = function (event) {
t.step(function(){
assert_throws("InvalidStateError", function(){
ostore.clear();
});
assert_throws("InvalidStateError", function(){
ostore.clear();
});
t.done();
}
</script>

10 changes: 2 additions & 8 deletions tests/wpt/web-platform-tests/IndexedDB/idbobjectstore_count4.htm
Expand Up @@ -17,15 +17,9 @@
db = event.target.result;
ostore = db.createObjectStore("store", {keyPath:"pKey"});
db.deleteObjectStore("store");
}

open_rq.onsuccess = function (event) {
t.step(function(){
assert_throws("InvalidStateError", function(){
ostore.count();
});
assert_throws("InvalidStateError", function(){
ostore.count();
});
t.done();
}
</script>

Expand Up @@ -19,15 +19,9 @@
db = event.target.result;
ostore = db.createObjectStore("store", {keyPath:"pKey"});
db.deleteObjectStore("store");
}

open_rq.onsuccess = function (event) {
t.step(function(){
assert_throws("InvalidStateError", function(){
ostore.delete("primaryKey_0");
});
assert_throws("InvalidStateError", function(){
ostore.delete("primaryKey_0");
});
t.done();
}
</script>

10 changes: 2 additions & 8 deletions tests/wpt/web-platform-tests/IndexedDB/idbobjectstore_put16.htm
Expand Up @@ -17,15 +17,9 @@
db = event.target.result;
ostore = db.createObjectStore("store", {keyPath:"pKey"});
db.deleteObjectStore("store");
}

open_rq.onsuccess = function (event) {
t.step(function(){
assert_throws("InvalidStateError", function(){
ostore.put({pKey: "primaryKey_0"});
});
assert_throws("InvalidStateError", function(){
ostore.put({pKey: "primaryKey_0"});
});
t.done();
}
</script>

Expand Up @@ -33,7 +33,7 @@
return fd;
}

do_test("formdata with blob", create_formdata(['key', new Blob(['value'], {type: 'text/x-value'})]), 'key=value,\n');
do_test("formdata with blob", create_formdata(['key', new Blob(['value'], {type: 'text/x-value'})]), '\nkey=blob:text/x-value:5,');
do_test("formdata with named blob", create_formdata(['key', new Blob(['value'], {type: 'text/x-value'}), 'blob.txt']), '\nkey=blob.txt:text/x-value:5,');
// If 3rd argument is given and 2nd is not a Blob, formdata.append() should throw
var test = async_test('formdata.append() should throw if value is string and file name is given'); // needs to be async just because the others above are
Expand Down
15 changes: 15 additions & 0 deletions tests/wpt/web-platform-tests/cookies/resources/echo-json.py
@@ -0,0 +1,15 @@
import json

def main(request, response):
headers = [("Content-Type", "application/json"),
("Access-Control-Allow-Credentials", "true")]

if "origin" in request.headers:
headers.append(("Access-Control-Allow-Origin", request.headers["origin"]))

values = []
for key in request.cookies:
for value in request.cookies.get_list(key):
values.append("\"%s\": \"%s\"" % (key, value))
body = "{ %s }" % ",".join(values)
return headers, body

0 comments on commit 2fcf1a2

Please sign in to comment.