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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/malformed-worker.py

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 unified diff | Download patch
OLDNEW
(Empty)
1 def main(request, response):
2 headers = [("Content-Type", "application/javascript")]
3
4 body = {'parse-error': 'var foo = function() {;',
5 'undefined-error': 'foo.bar = 42;',
6 'uncaught-exception': 'throw new DOMException("AbortError");',
7 'caught-exception': 'try { throw new Error; } catch(e) {}',
8 'import-malformed-script': 'importScripts("malformed-worker.py?parse -error");',
9 'import-no-such-script': 'importScripts("no-such-script.js");'}[requ est.url_parts.query]
10 return headers, body
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698