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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php

Issue 2370843003: Suborigin LayoutTest formatting and refactoring (Closed)
Patch Set: Created 4 years, 3 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/http/tests/security/suborigins/suborigin-service-worker-link-rel.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php
index 51c09bd9fab208f7724b71faea725e3875fbfe12..61de091aa101ff0ec5cdf11f3f7d3e1b0064146a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php
@@ -4,6 +4,7 @@ header("Suborigin: foobar");
<!DOCTYPE html>
<html>
<head>
+<meta charset="utf-8">
<title>Service Worker link rel fails from a suborigin</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
@@ -13,10 +14,11 @@ var link = document.createElement('link');
link.setAttribute('rel', 'serviceworker');
link.setAttribute('href', '/serviceworker/resources/empty-worker.js');
link.onload = function() {
- assert_unreached('Service worker was successfully registered with a <link> element');
+ assert_unreached(
+ 'Service worker was successfully registered with a <link> element');
}
link.onerror = function() {
- done();
+ done();
}
document.getElementsByTagName('head')[0].appendChild(link);
</script>

Powered by Google App Engine
This is Rietveld 408576698