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

Side by Side Diff: LayoutTests/dart/dom/DOMMap.dart

Issue 1663753002: Apply all blink changes between @202695 and tip of trunk (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/dart/dom/Console-expected.txt ('k') | LayoutTests/dart/exception-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import 'package:expect/expect.dart'; 1 import 'package:expect/expect.dart';
2 import 'package:unittest/html_config.dart'; 2 import 'package:unittest/html_config.dart';
3 import 'package:unittest/unittest.dart'; 3 import 'package:unittest/unittest.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:isolate'; 5 import 'dart:isolate';
6 6
7 main() { 7 main() {
8 useHtmlConfiguration(true); 8 useHtmlConfiguration(true);
9 test('ElementsIdentity', () { 9 test('ElementsIdentity', () {
10 // Except with Dartium/JS-interop we don't get identity, we'll have
11 // to settle for equality.
10 DivElement div = new Element.tag('div'); 12 DivElement div = new Element.tag('div');
11 div.id = 'test'; 13 div.id = 'test';
12 document.body.nodes.add(div); 14 document.body.nodes.add(div);
13 15
14 Element element = document.query('#test'); 16 Element element = document.query('#test');
15 Expect.identical(div, element); 17 Expect.equals(div, element);
16 }); 18 });
17 test('TwoIsolates', () { 19 test('TwoIsolates', () {
18 // Test that we can access the same DOM nodes from different isolates. 20 // Test that we can access the same DOM nodes from different isolates.
19 // FIXME: uncomment when we have DOM isolates. 21 // FIXME: uncomment when we have DOM isolates.
20 /* 22 /*
21 SendPort port = spawnFunction(isolateEntry); 23 SendPort port = spawnFunction(isolateEntry);
22 Element testDiv = document.query('#test_div'); 24 Element testDiv = document.query('#test_div');
23 Expect.equals('Hello from Dart Frame', testDiv.innerHtml); 25 Expect.equals('Hello from Dart Frame', testDiv.innerHtml);
24 document.body.removeChild(testDiv); 26 document.body.removeChild(testDiv);
25 */ 27 */
26 }); 28 });
27 } 29 }
28 30
29 void isolateEntry() { 31 void isolateEntry() {
30 Element element = new Element.tag('div'); 32 Element element = new Element.tag('div');
31 element.id = 'test_div'; 33 element.id = 'test_div';
32 element.innerHtml = 'Hello from Dart isolate'; 34 element.innerHtml = 'Hello from Dart isolate';
33 document.body.nodes.add(element); 35 document.body.nodes.add(element);
34 } 36 }
OLDNEW
« no previous file with comments | « LayoutTests/dart/dom/Console-expected.txt ('k') | LayoutTests/dart/exception-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698