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

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

Issue 16335012: Fixing some of the tests disabled from the chrome IDL roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/src/dart2js_FactoryProviders.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index e2b6fc4d0f6b4671b0c8a8f1d5c1ee682fdf917e..f78bca00f4d2fb0d79023f580dd63147ac8c8a3c 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -37,6 +37,17 @@ _pure_interfaces = monitored.Set('generator._pure_interfaces', [
def IsPureInterface(interface_name):
return interface_name in _pure_interfaces
+#
+# Classes which have native constructors but which we are suppressing because
+# they are not cross-platform.
+#
+_suppressed_native_constructors = monitored.Set(
+ 'generator._suppressed_native_constructors', [
+ 'DocumentFragment',
+ 'Range',
+ 'Text',
+ ])
+
_custom_types = monitored.Set('generator._custom_types',
typed_array_renames.keys())
@@ -242,6 +253,9 @@ def AnalyzeConstructor(interface):
Returns None if the interface has no Constructor.
"""
+ if interface.id in _suppressed_native_constructors:
+ return None
+
if 'Constructor' in interface.ext_attrs:
name = None
overloads = interface.ext_attrs['Constructor']
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/src/dart2js_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698