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

Unified Diff: client/dom/scripts/idlrenderer_test.py

Issue 9706084: Add conditional feature to templates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 8 years, 9 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 | « client/dom/scripts/idlrenderer.py ('k') | client/dom/scripts/templateloader.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/idlrenderer_test.py
diff --git a/client/dom/scripts/idlrenderer_test.py b/client/dom/scripts/idlrenderer_test.py
index cbf509a725c6aaca262394684632466dd3488bc9..ba788afc63792dd5863214f974d20bfbf6d1e9fe 100755
--- a/client/dom/scripts/idlrenderer_test.py
+++ b/client/dom/scripts/idlrenderer_test.py
@@ -43,13 +43,17 @@ ACTUAL :
@A @B() @C(x) @D(x=1) @E(x,y=2)
void something();
};
+};
+@X module M2 {
+ @Y interface I {};
};'''
expected_text = \
'''module M {
- [Constructor(in long x)] interface I :
- @A J,
- K {
+ [Constructor(in long x)]
+ interface I :
+ @A J,
+ K {
/* Constants */
const boolean CONST = 1;
@@ -65,6 +69,11 @@ ACTUAL :
@A @B @C(x) @D(x=1) @E(x, y=2) void something();
};
};
+@X module M2 {
+ @Y
+ interface I {
+ };
+};
'''
self._run_test(input_text, expected_text)
« no previous file with comments | « client/dom/scripts/idlrenderer.py ('k') | client/dom/scripts/templateloader.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698