Bug 1180887 - Part 2: Split test_request_context.html into one test file per chunk; r=baku

--HG--
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_audio.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_beacon.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_cache.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_cspreport.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_embed.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_fetch.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_font.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_frame.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_iframe.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_image.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_imagesrcset.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_internal.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_nestedworker.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_nestedworkerinsharedworker.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_object.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_picture.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_ping.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_plugin.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_script.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_sharedworker.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_style.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_track.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_video.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_worker.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_xhr.html
rename : dom/workers/test/serviceworkers/test_request_context.html => dom/workers/test/serviceworkers/test_request_context_xslt.html
This commit is contained in:
Ehsan Akhgari 2015-07-06 16:56:06 -04:00
Родитель c8db7315b7
Коммит 0d43f2a7cc
29 изменённых файлов: 507 добавлений и 34 удалений

Просмотреть файл

@ -413,37 +413,8 @@
});
}
Promise.all([
testFetch(),
testImage(),
testImageSrcSet(),
testPicture(),
testAudio(),
testVideo(),
testBeacon(),
testCSPReport(),
testEmbed(),
testObject(),
testFont(),
testIFrame(),
testFrame(),
testInternal(),
testPing(),
testPlugin(),
testScript(),
testStyle(),
testTrack(),
testXHR(),
testXSLT(),
testWorker(),
testNestedWorker(),
testSharedWorker(),
testNestedWorkerInSharedWorker(),
// Also, test to see if the type of the request can be persisted in the database.
testCache(),
])
.then(function() {
var testName = location.search.substr(1);
window[testName]().then(function() {
finish();
}, function(e) {
ok(false, "A promise was rejected: " + e);

Просмотреть файл

@ -189,8 +189,32 @@ skip-if = !debug
[test_post_message_source.html]
[test_register_base.html]
[test_register_https_in_http.html]
[test_request_context.html]
skip-if = toolkit == 'android' # Bug 1163410
[test_request_context_audio.html]
[test_request_context_beacon.html]
[test_request_context_cache.html]
[test_request_context_cspreport.html]
[test_request_context_embed.html]
[test_request_context_fetch.html]
[test_request_context_font.html]
[test_request_context_frame.html]
[test_request_context_iframe.html]
[test_request_context_image.html]
[test_request_context_imagesrcset.html]
[test_request_context_internal.html]
[test_request_context_nestedworker.html]
[test_request_context_nestedworkerinsharedworker.html]
[test_request_context_object.html]
[test_request_context_picture.html]
[test_request_context_ping.html]
[test_request_context_plugin.html]
[test_request_context_script.html]
[test_request_context_sharedworker.html]
[test_request_context_style.html]
[test_request_context_track.html]
[test_request_context_video.html]
[test_request_context_worker.html]
[test_request_context_xhr.html]
[test_request_context_xslt.html]
[test_scopes.html]
[test_sandbox_intercept.html]
[test_sanitize.html]

Просмотреть файл

@ -48,7 +48,7 @@ function runTest() {
} else if (e.data.status == "todo") {
todo(e.data.result, e.data.message);
} else if (e.data.status == "registrationdone") {
iframe.src = "/tests/dom/workers/test/serviceworkers/fetch/context/index.html";
iframe.src = "/tests/dom/workers/test/serviceworkers/fetch/context/index.html?" + gTest;
} else if (e.data.status == "done") {
iframe.src = "/tests/dom/workers/test/serviceworkers/fetch/context/unregister.html";
} else if (e.data.status == "unregistrationdone") {

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testAudio";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testBeacon";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testCache";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testCSPReport";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testEmbed";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testFetch";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testFont";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testFrame";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testIFrame";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testImage";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testImageSrcSet";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testInternal";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testNestedWorker";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testNestedWorkerInSharedWorker";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testObject";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testPicture";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testPing";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testPlugin";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testScript";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testSharedWorker";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testStyle";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testTrack";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testVideo";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testWorker";
</script>
</body>
</html>

Просмотреть файл

@ -12,5 +12,8 @@
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testXHR";
</script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1121157 - Test that Request objects passed to FetchEvent have the correct context</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="test_request_context.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe></iframe>
<script type="text/javascript">
var gTest = "testXSLT";
</script>
</body>
</html>