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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/support/promise-access-control.py

Issue 2704543002: Import wpt@3bd204d7e86fd81e98e63f4ce59b95d98bad1c54 (Closed)
Patch Set: Created 3 years, 10 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 allow = request.GET.first("allow", "false")
3
4 headers = [("Content-Type", "application/javascript")]
5 if allow != "false":
6 headers.append(("Access-Control-Allow-Origin", "*"))
7
8 body = "new Promise(function(resolve, reject) { reject(42); })"
9
10 return headers, body
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698