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

Side by Side Diff: LayoutTests/dart/dromaeo-based-tests.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/XHR-expected.txt ('k') | LayoutTests/dart/dromaeo-based-tests.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:dom');
2
3 void main() {
4 if (null !== layoutTestController) {
5 layoutTestController.dumpAsText();
6 }
7 Main.main();
8 }
9
10 class Main {
11 // FIXME: Make this a unit test.
12 static HTMLBodyElement get body() { return document.body; }
13
14 static void main() {
15 HTMLElement elem = document.getElementById("test1");
16 HTMLElement a = document.getElementsByTagName("a")[0];
17
18 log(elem.getAttribute("id"));
19 log(elem.id);
20
21 elem.setAttribute("id", "foo");
22 log(elem.getAttribute("id"));
23 log(elem.id);
24
25 a.setAttribute("id", "foo");
26 log(a.getAttribute("id"));
27 log(a.id);
28
29 a.id = "bar";
30 log(a.getAttribute("id"));
31 log(a.id);
32 }
33
34 static void log(String msg) {
35 HTMLElement element = document.createElement('div');
36 element.innerHTML = msg;
37 body.appendChild(element);
38 }
39 }
OLDNEW
« no previous file with comments | « LayoutTests/dart/dom/XHR-expected.txt ('k') | LayoutTests/dart/dromaeo-based-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698