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

Side by Side Diff: sky/tests/dom/ownerScope.dart

Issue 1212163009: Port remaining Sky tests to the new world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: add Created 5 years, 5 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
« no previous file with comments | « sky/tests/dom/inherit-from-text-expected.txt ('k') | sky/tests/dom/ownerScope.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <sky>
2 <script>
3 import "../resources/third_party/unittest/unittest.dart"; 1 import "../resources/third_party/unittest/unittest.dart";
4 import "../resources/unit.dart"; 2 import "../resources/unit.dart";
5 3
6 import "dart:sky"; 4 import "dart:sky";
7 5
8 void main() { 6 void main() {
9 initUnit(); 7 initUnit();
10 8
11 test("should return null for elements not a child of a scope", () { 9 test("should return null for elements not a child of a scope", () {
12 var doc = new Document(); 10 var doc = new Document();
(...skipping 27 matching lines...) Expand all
40 var host = doc.createElement("div"); 38 var host = doc.createElement("div");
41 var child = doc.createElement("div"); 39 var child = doc.createElement("div");
42 var shadowRoot = host.ensureShadowRoot(); 40 var shadowRoot = host.ensureShadowRoot();
43 expect(child.owner, isNull); 41 expect(child.owner, isNull);
44 shadowRoot.appendChild(child); 42 shadowRoot.appendChild(child);
45 expect(child.owner, equals(shadowRoot)); 43 expect(child.owner, equals(shadowRoot));
46 child.remove(); 44 child.remove();
47 expect(child.owner, isNull); 45 expect(child.owner, isNull);
48 }); 46 });
49 } 47 }
50 </script>
51 </sky>
OLDNEW
« no previous file with comments | « sky/tests/dom/inherit-from-text-expected.txt ('k') | sky/tests/dom/ownerScope.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698