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

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

Issue 9188009: Things to unfork. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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/DOMIsolates-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('../../../../../dart/client/testing/unittest/unittest.dart');
2 #import('dart:dom');
3
4 main() {
5 forLayoutTests();
6 test('ElementsIdentity', () {
7 HTMLDivElement div = document.createElement('div');
8 div.id = 'test';
9 document.body.appendChild(div);
10
11 HTMLElement element = document.getElementById('test');
12 Expect.identical(div, element);
13 });
14 test('TwoIsolates', () {
15 // Test that we can access the same DOM nodes from different isolates.
16 // FIXME: uncomment when we have DOM isolates.
17 /*
18 Isolate isolate = new TestIsolate().spawn().then((SendPort port) {
19 HTMLElement testDiv = document.getElementById('test_div');
20 Expect.equals('Hello from Dart Frame', testDiv.innerHTML);
21 document.body.removeChild(testDiv);
22 });
23 */
24 });
25 }
26
27 class TestIsolate extends Isolate {
28 TestIsolate() : super.heavy();
29
30 void main() {
31 HTMLElement element = document.createElement('div');
32 element.id = 'test_div';
33 element.innerHTML = 'Hello from Dart isolate';
34 document.body.appendChild(element);
35 }
36 }
OLDNEW
« no previous file with comments | « LayoutTests/dart/dom/DOMIsolates-expected.txt ('k') | LayoutTests/dart/dom/DOMMap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698