LEFT | RIGHT |
1 // Copyright (C) 2005 Google Inc. | 1 // Copyright (C) 2005 Google Inc. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 import com.google.caja.parser.quasiliteral.MatchTest; | 56 import com.google.caja.parser.quasiliteral.MatchTest; |
57 import com.google.caja.parser.quasiliteral.ModuleFormatTest; | 57 import com.google.caja.parser.quasiliteral.ModuleFormatTest; |
58 import com.google.caja.parser.quasiliteral.QuasiBuilderTest; | 58 import com.google.caja.parser.quasiliteral.QuasiBuilderTest; |
59 import com.google.caja.parser.quasiliteral.RewriterTest; | 59 import com.google.caja.parser.quasiliteral.RewriterTest; |
60 import com.google.caja.parser.quasiliteral.ScopeTest; | 60 import com.google.caja.parser.quasiliteral.ScopeTest; |
61 import com.google.caja.parser.quasiliteral.TamingTest; | 61 import com.google.caja.parser.quasiliteral.TamingTest; |
62 import com.google.caja.parser.quasiliteral.ValijaModuleLoadingTest; | 62 import com.google.caja.parser.quasiliteral.ValijaModuleLoadingTest; |
63 import com.google.caja.plugin.CssRewriterTest; | 63 import com.google.caja.plugin.CssRewriterTest; |
64 import com.google.caja.plugin.CssRuleRewriterTest; | 64 import com.google.caja.plugin.CssRuleRewriterTest; |
65 import com.google.caja.plugin.CssValidatorTest; | 65 import com.google.caja.plugin.CssValidatorTest; |
66 import com.google.caja.plugin.DomProcessingEventsTest; | |
67 import com.google.caja.plugin.ExpressionSanitizerTest; | 66 import com.google.caja.plugin.ExpressionSanitizerTest; |
68 import com.google.caja.plugin.HtmlCompiledPluginTest; | 67 import com.google.caja.plugin.HtmlCompiledPluginTest; |
69 import com.google.caja.plugin.HtmlCompilerTest; | 68 import com.google.caja.plugin.HtmlEmitterTest; |
70 import com.google.caja.plugin.HtmlSanitizerTest; | |
71 import com.google.caja.plugin.JsHtmlSanitizerTest; | 69 import com.google.caja.plugin.JsHtmlSanitizerTest; |
72 import com.google.caja.plugin.stages.DebuggingSymbolsStageTest; | 70 import com.google.caja.plugin.stages.DebuggingSymbolsStageTest; |
73 import com.google.caja.plugin.stages.InlineCssImportsStageTest; | 71 import com.google.caja.plugin.stages.InlineCssImportsStageTest; |
74 import com.google.caja.plugin.stages.OpenTemplateStageTest; | 72 import com.google.caja.plugin.stages.OpenTemplateStageTest; |
75 import com.google.caja.plugin.stages.RewriteHtmlStageTest; | 73 import com.google.caja.plugin.stages.RewriteHtmlStageTest; |
76 import com.google.caja.plugin.templates.IhtmlSanityCheckerTest; | 74 import com.google.caja.plugin.templates.TemplateCompilerTest; |
77 import com.google.caja.plugin.templates.LocalizedHtmlTest; | 75 import com.google.caja.plugin.templates.TemplateSanitizerTest; |
78 import com.google.caja.render.JsLinePreservingPrinterTest; | 76 import com.google.caja.render.JsLinePreservingPrinterTest; |
79 import com.google.caja.render.JsMinimalPrinterTest; | 77 import com.google.caja.render.JsMinimalPrinterTest; |
80 import com.google.caja.render.JsPrettyPrinterTest; | 78 import com.google.caja.render.JsPrettyPrinterTest; |
81 import com.google.caja.render.SideBySideRendererTest; | 79 import com.google.caja.render.SideBySideRendererTest; |
82 import com.google.caja.render.SourceSnippetRendererTest; | 80 import com.google.caja.render.SourceSnippetRendererTest; |
83 import com.google.caja.render.SourceSpansRendererTest; | 81 import com.google.caja.render.SourceSpansRendererTest; |
84 import com.google.caja.render.TokenClassificationTest; | 82 import com.google.caja.render.TokenClassificationTest; |
85 import com.google.caja.reporting.AbstractMessageQueueTest; | 83 import com.google.caja.reporting.AbstractMessageQueueTest; |
86 import com.google.caja.reporting.BuildInfoTest; | 84 import com.google.caja.reporting.BuildInfoTest; |
87 import com.google.caja.reporting.HtmlSnippetProducerTest; | 85 import com.google.caja.reporting.HtmlSnippetProducerTest; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 CssRewriterTest.class, | 124 CssRewriterTest.class, |
127 CssRuleRewriterTest.class, | 125 CssRuleRewriterTest.class, |
128 CssSchemaTest.class, | 126 CssSchemaTest.class, |
129 CssTreeTest.class, | 127 CssTreeTest.class, |
130 CssValidatorTest.class, | 128 CssValidatorTest.class, |
131 DebuggingSymbolsStageTest.class, | 129 DebuggingSymbolsStageTest.class, |
132 DecodingCharProducerTest.class, | 130 DecodingCharProducerTest.class, |
133 DefaultGadgetRewriterTest.class, | 131 DefaultGadgetRewriterTest.class, |
134 DefaultValijaRewriterTest.class, | 132 DefaultValijaRewriterTest.class, |
135 DomParserTest.class, | 133 DomParserTest.class, |
136 DomProcessingEventsTest.class, | |
137 EscapingTest.class, | 134 EscapingTest.class, |
138 EventStoreTest.class, | 135 EventStoreTest.class, |
139 ExpressionLanguageStageTest.class, | 136 ExpressionLanguageStageTest.class, |
140 ExpressionSanitizerTest.class, | 137 ExpressionSanitizerTest.class, |
141 FilePositionTest.class, | 138 FilePositionTest.class, |
142 FuzzedParserTest.class, | 139 FuzzedParserTest.class, |
143 GadgetParserTest.class, | 140 GadgetParserTest.class, |
144 HcalTest.class, | 141 HcalTest.class, |
145 HtmlCompiledPluginTest.class, | 142 HtmlCompiledPluginTest.class, |
146 HtmlCompilerTest.class, | 143 HtmlEmitterTest.class, |
147 HtmlLexerTest.class, | 144 HtmlLexerTest.class, |
148 HtmlSanitizerTest.class, | |
149 HtmlSchemaTest.class, | 145 HtmlSchemaTest.class, |
150 HtmlSnippetProducerTest.class, | 146 HtmlSnippetProducerTest.class, |
151 IhtmlSanityCheckerTest.class, | |
152 IllegalReferenceCheckRewriterTest.class, | 147 IllegalReferenceCheckRewriterTest.class, |
153 InlineCssImportsStageTest.class, | 148 InlineCssImportsStageTest.class, |
154 InnocentCodeRewriterTest.class, | 149 InnocentCodeRewriterTest.class, |
155 JoinTest.class, | 150 JoinTest.class, |
156 JsHtmlSanitizerTest.class, | 151 JsHtmlSanitizerTest.class, |
157 JsLexerTest.class, | 152 JsLexerTest.class, |
158 JsLinePreservingPrinterTest.class, | 153 JsLinePreservingPrinterTest.class, |
159 JsMinimalPrinterTest.class, | 154 JsMinimalPrinterTest.class, |
160 JsPrettyPrinterTest.class, | 155 JsPrettyPrinterTest.class, |
161 LayoutTest.class, | 156 LayoutTest.class, |
162 LocalizedHtmlTest.class, | |
163 MatchTest.class, | 157 MatchTest.class, |
164 ModuleFormatTest.class, | 158 ModuleFormatTest.class, |
165 NumberLiteralTest.class, | 159 NumberLiteralTest.class, |
166 OpenTemplateStageTest.class, | 160 OpenTemplateStageTest.class, |
167 ParseTreeNodeTest.class, | 161 ParseTreeNodeTest.class, |
168 ParserBaseTest.class, | 162 ParserBaseTest.class, |
169 ParserTest.class, | 163 ParserTest.class, |
170 PunctuationTrieTest.class, | 164 PunctuationTrieTest.class, |
171 QuasiBuilderTest.class, | 165 QuasiBuilderTest.class, |
172 RRuleTest.class, | 166 RRuleTest.class, |
173 RewriteHtmlStageTest.class, | 167 RewriteHtmlStageTest.class, |
174 RewriterTest.class, | 168 RewriterTest.class, |
175 RhinoAssertsTest.class, | 169 RhinoAssertsTest.class, |
176 ScopeTest.class, | 170 ScopeTest.class, |
177 SideBySideRendererTest.class, | 171 SideBySideRendererTest.class, |
178 SnippetProducerTest.class, | 172 SnippetProducerTest.class, |
179 SourceBreaksTest.class, | 173 SourceBreaksTest.class, |
180 SourceSnippetRendererTest.class, | 174 SourceSnippetRendererTest.class, |
181 SourceSpansRendererTest.class, | 175 SourceSpansRendererTest.class, |
182 SparseBitSetTest.class, | 176 SparseBitSetTest.class, |
183 StringLiteralTest.class, | 177 StringLiteralTest.class, |
184 StringsTest.class, | 178 StringsTest.class, |
185 TamingTest.class, | 179 TamingTest.class, |
| 180 TemplateCompilerTest.class, |
| 181 TemplateSanitizerTest.class, |
186 TestBedTest.class, | 182 TestBedTest.class, |
187 TokenClassificationTest.class, | 183 TokenClassificationTest.class, |
188 UriUtilTest.class, | 184 UriUtilTest.class, |
189 ValijaModuleLoadingTest.class, | 185 ValijaModuleLoadingTest.class, |
190 }; | 186 }; |
191 Pattern testFilter = Pattern.compile(System.getProperty("test.filter", "")); | 187 Pattern testFilter = Pattern.compile(System.getProperty("test.filter", "")); |
192 for (Class<? extends TestCase> testClass : testClasses) { | 188 for (Class<? extends TestCase> testClass : testClasses) { |
193 if (testFilter.matcher(testClass.getName()).find()) { | 189 if (testFilter.matcher(testClass.getName()).find()) { |
194 suite.addTestSuite(testClass); | 190 suite.addTestSuite(testClass); |
195 } | 191 } |
196 } | 192 } |
197 return suite; | 193 return suite; |
198 } | 194 } |
199 } | 195 } |
LEFT | RIGHT |