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

Unified Diff: LayoutTests/dart/dom/DOMMap.dart

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/dart/dom/Console-expected.txt ('k') | LayoutTests/dart/dom/DOMMap.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dart/dom/DOMMap.dart
diff --git a/LayoutTests/dart/dom/DOMMap.dart b/LayoutTests/dart/dom/DOMMap.dart
new file mode 100644
index 0000000000000000000000000000000000000000..98416c649ebf60a82c61edbd8dce8504789bbbbb
--- /dev/null
+++ b/LayoutTests/dart/dom/DOMMap.dart
@@ -0,0 +1,34 @@
+import 'package:expect/expect.dart';
+import 'package:unittest/html_config.dart';
+import 'package:unittest/unittest.dart';
+import 'dart:html';
+import 'dart:isolate';
+
+main() {
+ useHtmlConfiguration(true);
+ test('ElementsIdentity', () {
+ DivElement div = new Element.tag('div');
+ div.id = 'test';
+ document.body.nodes.add(div);
+
+ Element element = document.query('#test');
+ Expect.identical(div, element);
+ });
+ test('TwoIsolates', () {
+ // Test that we can access the same DOM nodes from different isolates.
+ // FIXME: uncomment when we have DOM isolates.
+ /*
+ SendPort port = spawnFunction(isolateEntry);
+ Element testDiv = document.query('#test_div');
+ Expect.equals('Hello from Dart Frame', testDiv.innerHtml);
+ document.body.removeChild(testDiv);
+ */
+ });
+}
+
+void isolateEntry() {
+ Element element = new Element.tag('div');
+ element.id = 'test_div';
+ element.innerHtml = 'Hello from Dart isolate';
+ document.body.nodes.add(element);
+}
« no previous file with comments | « LayoutTests/dart/dom/Console-expected.txt ('k') | LayoutTests/dart/dom/DOMMap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698