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

Side by Side Diff: test/html5_utils_test.dart

Issue 11465028: rename web_components -> web_ui (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 8 years 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
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Tests that we are generating a valid `dart:html` type for each element 6 * Tests that we are generating a valid `dart:html` type for each element
7 * field. This test is a bit goofy because it needs to run the `dart_analyzer`, 7 * field. This test is a bit goofy because it needs to run the `dart_analyzer`,
8 * but I can't think of an easier way to validate that the HTML types in our 8 * but I can't think of an easier way to validate that the HTML types in our
9 * table exist. 9 * table exist.
10 */ 10 */
11 library html_type_test; 11 library html_type_test;
12 12
13 import 'dart:io'; 13 import 'dart:io';
14 import 'package:html5lib/dom.dart'; 14 import 'package:html5lib/dom.dart';
15 import 'package:unittest/unittest.dart'; 15 import 'package:unittest/unittest.dart';
16 import 'package:unittest/vm_config.dart'; 16 import 'package:unittest/vm_config.dart';
17 import 'package:web_components/src/html5_utils.dart'; 17 import 'package:web_ui/src/html5_utils.dart';
18 import 'package:web_components/src/html5_setters.g.dart'; 18 import 'package:web_ui/src/html5_setters.g.dart';
19 import 'testing.dart'; 19 import 'testing.dart';
20 20
21 main() { 21 main() {
22 useVmConfiguration(); 22 useVmConfiguration();
23 useMockMessages(); 23 useMockMessages();
24 24
25 test('generate type test for tag -> element mapping', () { 25 test('generate type test for tag -> element mapping', () {
26 var code = new StringBuffer(); 26 var code = new StringBuffer();
27 code.add('import "dart:html" as html;\n'); 27 code.add('import "dart:html" as html;\n');
28 code.add('import "dart:web_audio" as web_audio;\n'); 28 code.add('import "dart:web_audio" as web_audio;\n');
(...skipping 28 matching lines...) Expand all
57 code.add('}\n'); 57 code.add('}\n');
58 58
59 // Note: name is important for this to get picked up by run.sh 59 // Note: name is important for this to get picked up by run.sh
60 // We don't analyze here, but run.sh will analyze it. 60 // We don't analyze here, but run.sh will analyze it.
61 new File('data/output/html5_utils_test_attr_bootstrap.dart') 61 new File('data/output/html5_utils_test_attr_bootstrap.dart')
62 .openSync(FileMode.WRITE) 62 .openSync(FileMode.WRITE)
63 ..writeStringSync(code.toString()) 63 ..writeStringSync(code.toString())
64 ..close(); 64 ..close();
65 }); 65 });
66 } 66 }
OLDNEW
« pubspec.yaml ('K') | « test/emitter_test.dart ('k') | test/html_cleaner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698