Index: LayoutTests/dart/dom/Console.dart |
diff --git a/LayoutTests/dart/dom/Console.dart b/LayoutTests/dart/dom/Console.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8e6a5e5fefad8ef34c1154c0b96456f86775bcf5 |
--- /dev/null |
+++ b/LayoutTests/dart/dom/Console.dart |
@@ -0,0 +1,17 @@ |
+import "package:unittest/unittest.dart"; |
+import "package:unittest/html_config.dart"; |
+import 'dart:html'; |
+ |
+main() { |
+ useHtmlConfiguration(true); |
+ test('Console', () { |
+ window.console.log("Test message."); |
+ window.console.log(42); |
+ window.console.log(new TestObjectWithToString()); |
+ window.console.log(true); |
+ }); |
+} |
+ |
+class TestObjectWithToString { |
+ String toString() => "TestObject instance"; |
+} |