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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/private_extension_member_test.dart

Issue 2419863002: Remove uses of unittest in the HTML tests where possible. (Closed)
Patch Set: Remove TODO. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 8
9 main() { 9 main() {
10 // Regression test for: https://github.com/dart-lang/dev_compiler/issues/508. 10 // Regression test for: https://github.com/dart-lang/dev_compiler/issues/508.
11 // "dart:html" defines some private members on native DOM types and we need 11 // "dart:html" defines some private members on native DOM types and we need
12 // to ensure those can be accessed correctly. 12 // to ensure those can be accessed correctly.
13 // 13 //
14 // The createFragment() method sets `_innerHtml` on the element, so we use it 14 // The createFragment() method sets `_innerHtml` on the element, so we use it
15 // as a test case. 15 // as a test case.
16 Expect.equals("[object DocumentFragment]", 16 Expect.equals("Instance of 'DocumentFragment'",
17 new BRElement().createFragment("Hi").toString()); 17 new BRElement().createFragment("Hi").toString());
18 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698