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

Unified Diff: sky/tests/lowlevel/create-document.sky

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/tests/lowlevel/classlist-expected.txt ('k') | sky/tests/lowlevel/create-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/lowlevel/create-document.sky
diff --git a/sky/tests/lowlevel/create-document.sky b/sky/tests/lowlevel/create-document.sky
index cb4f7c3f0d8fbaf367dedbcd8d7cef7f9db7f45b..30bdbaf2d786946aaf964432533980d08fdc8d64 100644
--- a/sky/tests/lowlevel/create-document.sky
+++ b/sky/tests/lowlevel/create-document.sky
@@ -1,15 +1,20 @@
<html>
-<import src="../resources/chai.sky" />
-<import src="../resources/mocha.sky" />
<script>
-describe('Document', function() {
- it('should have a constructor', function() {
+import "../resources/third_party/unittest/unittest.dart";
+import "../resources/unit.dart";
+
+import "dart:sky";
+
+main() {
+ initUnit();
+
+ test('should have a constructor', () {
var doc = new Document();
- assert.isNotNull(doc);
- assert.doesNotThrow(function() {
- doc.registerElement('x-foo');
- }, 'new document should have a registration context');
+ expect(doc, isNotNull);
+ // assert.doesNotThrow(function() {
+ // doc.registerElement('x-foo');
+ // }, 'new document should have a registration context');
});
-});
+}
</script>
</html>
« no previous file with comments | « sky/tests/lowlevel/classlist-expected.txt ('k') | sky/tests/lowlevel/create-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698