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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-dom-access.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-dom-access.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-dom-access.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-dom-access.php
index acd1adde48e5ad123577e8bfe66437b732256fac..752c7cbaf21eae001fd72bb9b891f665ddec2811 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-dom-access.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-dom-access.php
@@ -4,15 +4,16 @@ header("Suborigin: foobar");
<!DOCTYPE html>
<html>
<head>
+<meta charset="utf-8">
<title>Service worker JavaScript API fails from a suborigin</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<script>
-var expectedError = new DOMException("TEST EXCEPTION", "SecurityError");
-assert_throws(expectedError, function() {
+var expected_error = new DOMException('TEST EXCEPTION', 'SecurityError');
+assert_throws(expected_error, function() {
navigator.serviceWorker;
-});
+ });
done();
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698