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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import 'package:expect/expect.dart';
2 import 'package:unittest/html_config.dart';
3 import 'package:unittest/unittest.dart';
4 import 'dart:html';
5 import 'dart:isolate';
6
7 main() {
8 useHtmlConfiguration(true);
9 test('ElementsIdentity', () {
10 DivElement div = new Element.tag('div');
11 div.id = 'test';
12 document.body.nodes.add(div);
13
14 Element element = document.query('#test');
15 Expect.identical(div, element);
16 });
17 test('TwoIsolates', () {
18 // Test that we can access the same DOM nodes from different isolates.
19 // FIXME: uncomment when we have DOM isolates.
20 /*
21 SendPort port = spawnFunction(isolateEntry);
22 Element testDiv = document.query('#test_div');
23 Expect.equals('Hello from Dart Frame', testDiv.innerHtml);
24 document.body.removeChild(testDiv);
25 */
26 });
27 }
28
29 void isolateEntry() {
30 Element element = new Element.tag('div');
31 element.id = 'test_div';
32 element.innerHtml = 'Hello from Dart isolate';
33 document.body.nodes.add(element);
34 }
OLDNEW
« 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