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

Side by Side Diff: LayoutTests/http/tests/serviceworker/resources/malformed-worker.php

Issue 697833004: ServiceWorker: Registering a malformed script should fail [3/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@install_malformed_script
Patch Set: add more tests Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/http/tests/serviceworker/registration.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <?php
2 header('Content-Type:application/javascript');
3 switch ($_SERVER['QUERY_STRING']) {
4 case 'parse-error':
5 echo 'var foo = function() {;';
6 exit;
7 case 'undefined-error':
8 echo 'foo.bar = 42;';
9 exit;
10 case 'uncaught-exception':
11 echo 'throw new Error;';
12 exit;
13 case 'caught-exception':
14 echo 'try { throw new Error; } catch(e) {}';
15 exit;
16 case 'import-malformed-script':
17 echo 'importScripts("malformed-worker.php?parse-error");';
18 exit;
19 case 'import-no-such-script':
20 echo 'importScripts("no-such-script.js");';
21 exit;
22 }
23 ?>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/serviceworker/registration.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698