38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
define([
|
|
'Core/queryToObject',
|
|
'Core/RuntimeError'
|
|
], function(
|
|
queryToObject,
|
|
RuntimeError) {
|
|
'use strict';
|
|
|
|
function BadGeometry() {
|
|
this._workerName = '../../Specs/TestWorkers/createBadGeometry';
|
|
|
|
// Make this worker loadable when testing against the built version of Cesium.
|
|
if (typeof window !== 'undefined' && typeof window.location !== 'undefined' && typeof window.location.search !== 'undefined') {
|
|
var parameters = queryToObject(window.location.search.substring(1));
|
|
if (parameters.built) {
|
|
this._workerName = '../' + this._workerName;
|
|
}
|
|
}
|
|
}
|
|
|
|
BadGeometry.createGeometry = function() {
|
|
//This function is only called when synchronous, see Specs/TestWorks/createBadGeometry for asynchronous.
|
|
throw new RuntimeError('BadGeometry.createGeometry');
|
|
};
|
|
|
|
BadGeometry.packedLength = 0;
|
|
|
|
BadGeometry.pack = function() {
|
|
|
|
};
|
|
|
|
BadGeometry.unpack = function() {
|
|
return new BadGeometry();
|
|
};
|
|
|
|
return BadGeometry;
|
|
});
|