mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 3d117ae1266e6bd039a3a1ab92b27e82c3ccc92d
This commit is contained in:
parent
647796ede6
commit
20a08918d9
132 changed files with 3012 additions and 689 deletions
|
@ -3251,7 +3251,11 @@ function idl_test(srcs, deps, idl_setup_func) {
|
|||
* fetch_spec is a shorthand for a Promise that fetches the spec's content.
|
||||
*/
|
||||
function fetch_spec(spec) {
|
||||
return fetch('/interfaces/' + spec + '.idl').then(function (r) {
|
||||
var url = '/interfaces/' + spec + '.idl';
|
||||
return fetch(url).then(function (r) {
|
||||
if (!r.ok) {
|
||||
throw new IdlHarnessError("Error fetching " + url + ".");
|
||||
}
|
||||
return r.text();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue