forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
13 changed files
with
169 additions
and
131 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 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 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 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 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,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Jasmine Spec Runner v4.0.1</title> | ||
|
||
<link | ||
rel="stylesheet" | ||
href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css" | ||
/> | ||
|
||
<script src="../node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script> | ||
<script src="../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script> | ||
<script src="../node_modules/jasmine-core/lib/jasmine-core/boot0.js"></script> | ||
<script type="module" src="./spec-main.js"></script> | ||
<script src="../node_modules/jasmine-core/lib/jasmine-core/boot1.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
if (window.location.search.indexOf("built") !== -1) { | ||
if (window.location.search.indexOf("release") !== -1) { | ||
document.write('<script src="../Build/Cesium/Cesium.js"><\/script>'); | ||
} else { | ||
document.write( | ||
'<script src="../Build/CesiumUnminified/Cesium.js"><\/script>' | ||
); | ||
} | ||
document.write('<script src="../Build/Specs/Specs.js"><\/script>'); | ||
} else { | ||
window.CESIUM_BASE_URL = "../Source/"; | ||
document.write('<script type="module" src="./SpecList.js"><\/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
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 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 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 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,64 @@ | ||
import customizeJasmine from "./customizeJasmine.js"; | ||
import { defined, queryToObject } from "../Source/Cesium.js"; | ||
|
||
const queryString = queryToObject(window.location.search.substring(1)); | ||
|
||
let webglValidation = false; | ||
let webglStub = false; | ||
const built = window.location.search.indexOf("built") !== -1; | ||
const release = window.location.search.indexOf("release") !== -1; | ||
const categoryString = queryString.category; | ||
const excludeCategoryString = queryString.not; | ||
|
||
if (defined(queryString.webglValidation)) { | ||
webglValidation = true; | ||
} | ||
|
||
if (defined(queryString.webglStub)) { | ||
webglStub = true; | ||
} | ||
|
||
if (built) { | ||
if (release) { | ||
window.CESIUM_BASE_URL = "../Build/Cesium"; | ||
} else { | ||
window.CESIUM_BASE_URL = "../Build/CesiumUnminified"; | ||
} | ||
} else { | ||
window.CESIUM_BASE_URL = "../Source/"; | ||
} | ||
|
||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000; | ||
|
||
const specFilter = new jasmine.HtmlSpecFilter({ | ||
filterString: function () { | ||
return queryString.spec; | ||
}, | ||
}); | ||
|
||
const env = jasmine.getEnv(); | ||
env.configure({ | ||
stopSpecOnExpectationFailure: false, | ||
stopOnSpecFailure: false, | ||
random: false, | ||
hideDisabled: true, | ||
specFilter: function (spec) { | ||
if ( | ||
!specFilter.matches(spec.getFullName()) || | ||
(categoryString === "none" && !defined(queryString.spec)) | ||
) { | ||
return false; | ||
} | ||
|
||
return true; | ||
}, | ||
}); | ||
|
||
customizeJasmine( | ||
env, | ||
categoryString, | ||
excludeCategoryString, | ||
webglValidation, | ||
webglStub, | ||
release | ||
); |
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
Oops, something went wrong.