Skip to content
Snippets Groups Projects
Commit 94f295c5 authored by jakubs's avatar jakubs
Browse files

SSDM-1439 SSDM-1383 Add more dependencies to index.html.

SVN: 33308
parent 0c05d45e
No related branches found
No related tags found
No related merge requests found
...@@ -6,78 +6,88 @@ ...@@ -6,78 +6,88 @@
<link rel="stylesheet" href="../common-test/qunit.css"> <link rel="stylesheet" href="../common-test/qunit.css">
<script> <script>
var requirejs = { var requirejs = {
paths: { paths: {
"jquery": "/openbis/resources/js/jquery", "jquery": "/openbis/resources/js/jquery",
"qunit": "support/qunit", "qunit": "support/qunit",
"qunit-report": "support/qunit-reporter-junit", "qunit-report": "support/qunit-reporter-junit",
"common-test": "../common-test/common-test", "common-test": "../common-test/common-test",
"dto": "models/dto" "dto": "models/dto"
}, },
shim: { shim: {
"qunit": { "qunit": {
exports: "QUnit", exports: "QUnit",
init: function() { init: function() {
QUnit.config.autoload = false; QUnit.config.autoload = false;
QUnit.config.autostart = false; QUnit.config.autostart = false;
} }
}, },
"qunit-report": { "qunit-report": {
deps: ['qunit'], deps: ['qunit'],
}, },
"common-test": { "common-test": {
deps: ['qunit', 'qunit-report'], deps: ['qunit', 'qunit-report'],
}, },
'support/Utils': { 'support/Utils': {
deps: ['support/stjs', 'support/type_registry', 'common-test'] deps: ['support/stjs', 'support/type_registry', 'common-test']
}, },
'support/stjs': { 'support/stjs': {
exports: "stjs", exports: "stjs",
deps: ['support/underscore-min.js'] deps: ['support/underscore-min.js']
}, },
'support/underscore-min': {
// DTO dependencies: exports: "_"
// Generally, if the dto has a call "new SomethingSomething" it should be an explicit dependency in the dto module definition },
// these are currently needed for "fromJSON" reconstruction but this is still not the right way
// DTO dependencies:
'dto/entity/experiment/Experiment': { // Generally, if the dto has a call "new SomethingSomething" it should be an explicit dependency in the dto module definition
deps: [ 'dto/id/experiment/ExperimentPermId', // these are currently needed for "fromJSON" reconstruction but this is still not the right way
'dto/id/experiment/ExperimentIdentifier',
'dto/entity/experiment/ExperimentType', 'dto/entity/experiment/Experiment': {
'dto/entity/project/Project', deps: [ 'dto/id/experiment/ExperimentPermId',
'dto/entity/person/Person'] 'dto/id/experiment/ExperimentIdentifier',
}, 'dto/entity/experiment/ExperimentType',
'dto/entity/experiment/ExperimentType': { 'dto/entity/project/Project',
deps: ['dto/fetchoptions/experiment/ExperimentTypeFetchOptions', 'dto/entity/person/Person']
'dto/id/entitytype/EntityTypePermId'] },
}, 'dto/entity/sample/Sample': {
'dto/entity/project/Project': { deps: [ 'dto/id/sample/SamplePermId',
deps: ['dto/id/project/ProjectPermId', 'dto/id/sample/SampleIdentifier',
'dto/id/project/ProjectIdentifier', 'dto/entity/sample/SampleType',
'dto/entity/space/Space'] 'dto/entity/space/Space',
}, 'dto/entity/experiment/Experiment' ]
'dto/entity/space/Space': { },
deps: ['dto/fetchoptions/space/SpaceFetchOptions', 'dto/entity/experiment/ExperimentType': {
'dto/id/space/SpacePermId'] deps: ['dto/fetchoptions/experiment/ExperimentTypeFetchOptions',
} 'dto/id/entitytype/EntityTypePermId']
},
} 'dto/entity/project/Project': {
}; deps: ['dto/id/project/ProjectPermId',
'dto/id/project/ProjectIdentifier',
'dto/entity/space/Space']
},
'dto/entity/space/Space': {
deps: ['dto/fetchoptions/space/SpaceFetchOptions',
'dto/id/space/SpacePermId']
}
}
};
</script> </script>
<script src="support/require-src.js"></script> <script src="support/require-src.js"></script>
<script> <script>
require(['jquery', require(['jquery',
'qunit', 'qunit',
'openbis-v3-api-test', 'openbis-v3-api-test',
'support/Utils'], function($, 'support/Utils'], function($,
qunit, qunit,
tester, thisOneIsHereOnlyToMakeSureEverythingIsLoadedTODORemoveMe) { tester, thisOneIsHereOnlyToMakeSureEverythingIsLoadedTODORemoveMe) {
qunit.load(); qunit.load();
qunit.start(); qunit.start();
tester(); tester();
}); });
</script> </script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment