| OLD | NEW |
| 1 import "../../../../../dart/pkg/unittest/lib/unittest.dart"; | 1 import "../../../../../dart/pkg/unittest/lib/unittest.dart"; |
| 2 import "../../../../../dart/pkg/unittest/lib/html_config.dart"; | 2 import "../../../../../dart/pkg/unittest/lib/html_config.dart"; |
| 3 import 'dart:html'; | 3 import 'dart:html'; |
| 4 | 4 |
| 5 main() { | 5 main() { |
| 6 useHtmlConfiguration(true); | 6 useHtmlConfiguration(true); |
| 7 test('Console', () { | 7 test('Console', () { |
| 8 window.console.log("Test message."); | 8 window.console.log("Test message."); |
| 9 window.console.log(42); | 9 window.console.log(42); |
| 10 // The object will show up in the console as an interactive object |
| 11 // so a blank line will show up in the Layout Test text output. |
| 10 window.console.log(new TestObjectWithToString()); | 12 window.console.log(new TestObjectWithToString()); |
| 13 window.console.log(true); |
| 11 }); | 14 }); |
| 12 } | 15 } |
| 13 | 16 |
| 14 class TestObjectWithToString { | 17 class TestObjectWithToString { |
| 15 String toString() => "TestObject instance"; | 18 String toString() => "TestObject instance"; |
| 16 } | 19 } |
| OLD | NEW |