Skip to content

Commit

Permalink
Consolidate all IDL files into interfaces/
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Mar 7, 2018
1 parent 174b1c7 commit 2f451fb
Show file tree
Hide file tree
Showing 22 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion FileAPI/idlharness.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1>File API automated IDL tests</h1>
var idl_array = new IdlArray();

var request = new XMLHttpRequest();
request.open("GET", "idlharness.idl");
request.open("GET", "/interfaces/FileAPI.idl");
request.send();
request.onload = function() {
var idls = request.responseText;
Expand Down
2 changes: 1 addition & 1 deletion FileAPI/idlharness.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ importScripts("/resources/testharness.js");
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");

var request = new XMLHttpRequest();
request.open("GET", "idlharness.idl");
request.open("GET", "/interfaces/FileAPI.idl");
request.send();
request.onload = function() {
var idl_array = new IdlArray();
Expand Down
2 changes: 1 addition & 1 deletion IndexedDB/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>IndexedDB IDL tests</h1>
"use strict";
async_test(function(t) {
var request = new XMLHttpRequest();
request.open("GET", "interfaces.idl");
request.open("GET", "/interfaces/IndexedDB.idl");
request.send();
request.onload = t.step_func(function() {
var idlArray = new IdlArray();
Expand Down
2 changes: 1 addition & 1 deletion IndexedDB/interfaces.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");

async_test(function(t) {
var request = new XMLHttpRequest();
request.open("GET", "interfaces.idl");
request.open("GET", "/interfaces/IndexedDB.idl");
request.send();
request.onload = t.step_func(function() {
var idlArray = new IdlArray();
Expand Down
2 changes: 1 addition & 1 deletion background-fetch/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>idlharness test</h1>
'use strict';

promise_test(function() {
return fetch('interfaces.idl')
return fetch('/interfaces/background-fetch.idl')
.then(response => response.text())
.then(idls => {
var idlArray = new IdlArray();
Expand Down
2 changes: 1 addition & 1 deletion background-fetch/interfaces.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ importScripts('/resources/testharness.js');
importScripts('/resources/WebIDLParser.js', '/resources/idlharness.js');

promise_test(function() {
return fetch('interfaces.idl')
return fetch('/interfaces/background-fetch.idl')
.then(response => response.text())
.then(idls => {
var idlArray = new IdlArray();
Expand Down
2 changes: 1 addition & 1 deletion cookie-store/idlharness.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'use strict';

promise_test(async t => {
const urls = ['/interfaces/html.idl', 'cookie-store.idl'];
const urls = ['/interfaces/html.idl', '/interfaces/cookie-store.idl'];
const [html, cookie_store] = await Promise.all(
urls.map(url => fetch(url).then(response => response.text())));

Expand Down
2 changes: 1 addition & 1 deletion cookie-store/idlharness_serviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ importScripts('/resources/testharness.js',
'/resources/idlharness.js');

promise_test(async t => {
const urls = ['cookie-store.idl'];
const urls = ['/interfaces/cookie-store.idl'];
const [cookie_store] = await Promise.all(
urls.map(url => fetch(url).then(response => response.text())));

Expand Down
2 changes: 1 addition & 1 deletion encrypted-media/idlharness.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1 class="instructions">Description</h1>
<script>
setup(function() {

fetch( 'EncryptedMediaExtensions.idl')
fetch( '/interfaces/encrypted-media.idl' )
.then( function( response ) {
if ( !response.ok ) throw new Error( 'IDL fetch failed' );
return response.text();
Expand Down
2 changes: 1 addition & 1 deletion entries-api/interfaces-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
assert_true(entry.isDirectory);
Promise.all([
getEntriesAsPromise(entry),
fetch('interfaces.idl').then(r => r.text())
fetch('/interfaces/entries-api.idl').then(r => r.text())
]).then(t.step_func(([entries, idls]) => {
window.samples = {
item: item,
Expand Down
2 changes: 1 addition & 1 deletion entries-api/interfaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'use strict';

promise_test(t => {
return fetch('interfaces.idl')
return fetch('/interfaces/entries-api.idl')
.then(r => r.text())
.then(idls => {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion storage/interfaces.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script>
'use strict';
promise_test(t => {
return fetch('interfaces.idl')
return fetch('/interfaces/storage.idl')
.then(response => response.text())
.then(idls => {
var idl_array = new IdlArray();
Expand Down
2 changes: 1 addition & 1 deletion storage/interfaces.https.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ importScripts('/resources/testharness.js');
importScripts('/resources/WebIDLParser.js', '/resources/idlharness.js');

promise_test(t => {
return fetch('interfaces.idl')
return fetch('/interfaces/storage.idl')
.then(response => response.text())
.then(idls => {
var idl_array = new IdlArray();
Expand Down
2 changes: 1 addition & 1 deletion webauthn/interfaces.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

// test harness function
window.promise_test(function() {
return fetchIdl("interfaces.idl") // load the IDL file ...
return fetchIdl("/interfaces/webauthn.idl") // load the IDL file ...
.then(function(idls) {
return runIdlTests(idls); // ... then run the tests.
});
Expand Down

0 comments on commit 2f451fb

Please sign in to comment.