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

Unified Diff: LayoutTests/http/tests/serviceworker/clients-matchall-include-uncontrolled.html

Issue 1286123004: Ensure that Service Worker clients are always returned in MRU order (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Restructure tests for readability. Created 5 years, 4 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: LayoutTests/http/tests/serviceworker/clients-matchall-include-uncontrolled.html
diff --git a/LayoutTests/http/tests/serviceworker/clients-matchall-include-uncontrolled.html b/LayoutTests/http/tests/serviceworker/clients-matchall-include-uncontrolled.html
index cb70d209d0cc3015fdb42cfc4efb263c23684397..1398a878ff0ca24558a819e8a21aaec76587c519 100644
--- a/LayoutTests/http/tests/serviceworker/clients-matchall-include-uncontrolled.html
+++ b/LayoutTests/http/tests/serviceworker/clients-matchall-include-uncontrolled.html
@@ -42,6 +42,7 @@ function test_matchall(frame, expected, query_options) {
return new Promise(function(resolve, reject) {
var channel = new MessageChannel();
channel.port1.onmessage = function(e) {
+ e.data.sort(function(a, b) { return a[2] > b[2] ? 1 : -1; });
assert_equals(e.data.length, expected.length);
for (var i = 0; i < e.data.length; i++)
assert_array_equals(e.data[i], expected[i]);

Powered by Google App Engine
This is Rietveld 408576698