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 19415ffae342a636f1a6eb46d389944b985804dc..a3eaa1ffe4cc4f98682073c0b11bcc3ea70ada1e 100644 |
--- a/sky/tests/modules/import-without-export.sky |
+++ b/sky/tests/modules/import-without-export.sky |
@@ -3,7 +3,9 @@ |
<import src="../resources/dump-as-text.sky" /> |
<div id="result">FAIL - Script did not execute</div> |
<script> |
-document.getElementById("result").textContent = |
- hello === undefined ? "PASS" : "FAIL"; |
+var result = "FAIL"; |
+if (typeof hello === "object" && Object.keys(hello).length === 0) |
+ result = "PASS"; |
+document.getElementById("result").textContent = result; |
</script> |
</html> |