Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ef2d0d
commit 65abac0
Showing
14 changed files
with
53 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
test/clone-within-dynamic-imports/within-dynamic-imports.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var clone = require("steal-clone"); | ||
|
||
module.exports = function(){ | ||
return clone({}).import("./first") | ||
} |
1 change: 0 additions & 1 deletion
1
test/clone-within-dynamic-imports/first.js → test/ext-steal-clone/multiple/first.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
console.log("running first"); | ||
module.exports = {name: "first"}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>clone tests</title> | ||
</head> | ||
<body> | ||
<script> | ||
window.done = window.parent.done; | ||
window.assert = window.parent.assert; | ||
</script> | ||
<script type="text/javascript" | ||
src="../../../steal.js" | ||
data-config="../../config.js" | ||
data-main="ext-steal-clone/multiple/test"></script> | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var clone = require("steal-clone"); | ||
|
||
module.exports = function(){ | ||
return clone({}).import('./second') | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("./second-runs-tests"); |
1 change: 0 additions & 1 deletion
1
test/clone-within-dynamic-imports/second.js → test/ext-steal-clone/multiple/second.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
console.log("running second"); | ||
module.exports = {name: "second"}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var doClone1 = require("./first-test"); | ||
var doClone2 = require("./second-test"); | ||
|
||
Promise.all([doClone1(), doClone2()]).then(function(){ | ||
if (typeof window !== "undefined" && window.assert) { | ||
assert.ok(true, "promises resolved"); | ||
done(); | ||
} else { | ||
console.log("worked"); | ||
} | ||
}, function(){ | ||
if (typeof window !== "undefined" && window.assert) { | ||
assert.ok(false, "promises failed"); | ||
done(); | ||
} else { | ||
console.log("promises failed"); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters