Skip to content

Commit

Permalink
Require HTTPS for the correct streams tests
Browse files Browse the repository at this point in the history
Previously, HTTPS was being required for the window-context tests, and not for the service-worker-context tests. This reverses that requirement.
  • Loading branch information
domenic authored Jan 24, 2017
1 parent 3d29369 commit f36afea
Show file tree
Hide file tree
Showing 69 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions streams/generate-test-wrappers.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function generateWrapper(jsFilename) {
const noExtension = path.basename(jsFilename, '.js');

const outputs = {
https: `<!DOCTYPE html>
'.html': `<!DOCTYPE html>
<meta charset="utf-8">
<title>${basename} browser context wrapper file</title>
Expand All @@ -42,7 +42,7 @@ ${importedScriptTags}
<script src="${basename}"></script>
`,
dedicatedworker: `<!DOCTYPE html>
'.dedicatedworker.html': `<!DOCTYPE html>
<meta charset="utf-8">
<title>${basename} dedicated worker wrapper file</title>
Expand All @@ -54,7 +54,7 @@ ${importedScriptTags}
fetch_tests_from_worker(new Worker('${basename}'));
</script>
`,
sharedworker: `<!DOCTYPE html>
'.sharedworker.html': `<!DOCTYPE html>
<meta charset="utf-8">
<title>${basename} shared worker wrapper file</title>
Expand All @@ -66,7 +66,7 @@ fetch_tests_from_worker(new Worker('${basename}'));
fetch_tests_from_worker(new SharedWorker('${basename}'));
</script>
`,
serviceworker: `<!DOCTYPE html>
'.serviceworker.https.html': `<!DOCTYPE html>
<meta charset="utf-8">
<title>${basename} service worker wrapper file</title>
Expand All @@ -82,7 +82,7 @@ service_worker_test('${basename}', 'Service worker test setup');
};

for (const [key, value] of Object.entries(outputs)) {
const destFilename = path.resolve(path.dirname(jsFilename), `${noExtension}.${key}.html`);
const destFilename = path.resolve(path.dirname(jsFilename), `${noExtension}${key}`);
fs.writeFileSync(destFilename, value, { encoding: 'utf-8' });
}
}
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f36afea

Please sign in to comment.