OLD | NEW |
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 } |
OLD | NEW |