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

Unified Diff: sky/tests/modules/import-without-export.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/modules/import-syntax-error-expected.txt ('k') | sky/tests/modules/imports-can-import.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/modules/import-without-export.sky
diff --git a/sky/tests/modules/import-without-export.sky b/sky/tests/modules/import-without-export.sky
index a3eaa1ffe4cc4f98682073c0b11bcc3ea70ada1e..93a694fca395f68a6097484bff9e23095755606b 100644
--- a/sky/tests/modules/import-without-export.sky
+++ b/sky/tests/modules/import-without-export.sky
@@ -3,9 +3,10 @@
<import src="../resources/dump-as-text.sky" />
<div id="result">FAIL - Script did not execute</div>
<script>
-var result = "FAIL";
-if (typeof hello === "object" && Object.keys(hello).length === 0)
- result = "PASS";
-document.getElementById("result").textContent = result;
+import "dart:sky";
+
+void main() {
+ document.getElementById("result").textContent = "PASS";
+}
</script>
</html>
« no previous file with comments | « sky/tests/modules/import-syntax-error-expected.txt ('k') | sky/tests/modules/imports-can-import.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698