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

Unified Diff: tools/dom/scripts/systemhtml.py

Issue 11783069: Adding support checks for WebSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« tests/html/websocket_test.dart ('K') | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index 49f749eb7c6cb32046e721a924abb8efc4c1e5cc..3d0d9130787fdc5b5d1122f7ca909e1a9cb77460 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -85,6 +85,7 @@ js_support_checks = {
'HTMLProgressElement': "Element.isTagSupported('progress')",
'HTMLShadowElement': "Element.isTagSupported('shadow')",
'HTMLTrackElement': "Element.isTagSupported('track')",
+ 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')",
}
# Classes that offer only static methods, and therefore we should suppress
« tests/html/websocket_test.dart ('K') | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698