Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/clients-matchall-client-types.https.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/clients-matchall-client-types.https.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/clients-matchall-client-types.https.html
similarity index 81%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/clients-matchall-client-types.https.html
index fa3b56f22ddccd2b30b231d6ddf2c5c431cfae11..3645e86354da88276194a5c0dbb977a8ea41bb7d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/clients-matchall-client-types.https.html
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<title>Service Worker: Clients.matchAll with various clientTypes</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="resources/test-helpers.js"></script>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="resources/test-helpers.sub.js"></script>
<script>
var scope = 'resources/clients-matchall-client-types';
var iframe_url = scope + '-iframe.html';
@@ -26,6 +26,7 @@ var expected_with_all = [
function test_matchall(frame, expected, query_options) {
// Make sure the frame gets focus.
frame.focus();
+ expected.sort(function(a, b) { return a[2] > b[2] ? 1 : -1; });
return new Promise(function(resolve, reject) {
var channel = new MessageChannel();
channel.port1.onmessage = function(e) {
@@ -61,13 +62,13 @@ promise_test(function(t) {
.then(function() {
return test_matchall(frame, expected_with_window, {type:'window'});
})
- .then(function() {
- return test_matchall(frame, expected_with_shared_worker,
- {type:'sharedworker'});
- })
- .then(function() {
- return test_matchall(frame, expected_with_all, {type:'all'});
- })
+ //.then(function() {
+ // return test_matchall(frame, expected_with_shared_worker,
+ // {type:'sharedworker'});
+ // })
+ //.then(function() {
+ // return test_matchall(frame, expected_with_all, {type:'all'});
+ // })
.then(function() {
frame.remove();
return service_worker_unregister_and_done(t, scope);

Powered by Google App Engine
This is Rietveld 408576698