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

Unified Diff: LayoutTests/dart/Node.html

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/Multiscript-expected.txt ('k') | LayoutTests/dart/Node-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dart/Node.html
diff --git a/LayoutTests/dart/Node.html b/LayoutTests/dart/Node.html
new file mode 100644
index 0000000000000000000000000000000000000000..4dbde2b8dad62fa925a0884b76563e4d91ab6d2b
--- /dev/null
+++ b/LayoutTests/dart/Node.html
@@ -0,0 +1,58 @@
+<html>
+<body>
+
+<div id="insert">*Insert Test Parent*<div id="refChild">Reference Child</div></div>
+<div id="replace">*Replace Test Parent*<div id="oldChild">Old Child</div></div>
+<div id="remove">*Remove Test Parent*<div id="child">Child</div></div>
+<div id="append">*Append Test Parent*</div>
+
+<script id="dart" type="application/dart">
+import 'dart:html';
+
+class NodeTest {
+ void testInsertBefore() {
+ Element parent = document.query('#insert');
+ Element child = new Element.tag('div');
+ child.innerHtml = 'Inserted Child';
+ Element refChild = document.query('#refChild');
+ parent.insertBefore(child, refChild);
+ }
+
+ void testReplaceChild() {
+ Element parent = document.query('#replace');
+ Element child = new Element.tag('div');
+ child.innerHtml = 'New Child';
+ Element oldChild = document.query('#oldChild');
+ oldChild.replaceWith(child);
+ }
+
+ void testRemoveChild() {
+ Element parent = document.query('#remove');
+ Element child = document.query('#child');
+ child.remove();
+ }
+
+ void testAppendChild() {
+ Element parent = document.query('#append');
+ Element child = new Element.tag('div');
+ child.innerHtml = 'Appended Child';
+ parent.nodes.add(child);
+ }
+}
+
+void main() {
+ NodeTest tester = new NodeTest();
+ tester.testInsertBefore();
+ tester.testReplaceChild();
+ tester.testRemoveChild();
+ tester.testAppendChild();
+}
+</script>
+
+<script>
+ if (window.testRunner)
+ window.testRunner.dumpAsText();
+</script>
+
+</body>
+</html>
« no previous file with comments | « LayoutTests/dart/Multiscript-expected.txt ('k') | LayoutTests/dart/Node-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698