File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ define([
3
3
"intern/chai!assert"
4
4
] , function ( registerSuite , assert ) {
5
5
6
- // Note that as this test is running, other unrelated styles are likely being loaded
7
- // from other test suites that load widgets that use theme!. Make test resilient to this.
8
- //for(var i = 0; i < 100000000; i++){var test = "toto"+i;}
9
-
10
6
var container ;
11
7
12
8
var cssRequire = require . config ( {
13
9
context : "css" ,
10
+ //note: BaseUrl is relative to requirejs-dplugins/node_modules/intern/ so baseUrl needs 3 "../"
11
+ // to be able to access requirejs-dplugins sibling directories.
12
+ // The last /requirejs-dplugins is here to allow to use css! directly instead of
13
+ // requirejs-dplugins/css!
14
14
baseUrl : "../../../requirejs-dplugins" ,
15
15
paths : { dojo : "../dojo" }
16
16
} ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ define([
9
9
setup : function ( ) {
10
10
moduleRequire = require . config ( {
11
11
context : "module" ,
12
- baseUrl : "../../../requirejs-dplugins" , // note: "../../.." make "grunt intern:remote" fail
12
+ //note: BaseUrl is relative to requirejs-dplugins/node_modules/intern/
13
+ // and the extra ../requirejs-dplugins is necessary to access requirejs-dplugins
14
+ // sibling directories.
15
+ baseUrl : "../../../requirejs-dplugins" ,
13
16
config : {
14
17
has : {
15
18
"config-feature" : true ,
@@ -99,6 +102,10 @@ define([
99
102
setup : function ( ) {
100
103
pluginRequire = require . config ( {
101
104
context : "plugin" ,
105
+ //note: BaseUrl is relative to requirejs-dplugins/node_modules/intern/ so baseUrl needs 3 "../"
106
+ // to be able to access requirejs-dplugins sibling directories.
107
+ // The last /requirejs-dplugins is here to allow to use has! directly instead of
108
+ // requirejs-dplugins/has!
102
109
baseUrl : "../../../requirejs-dplugins" ,
103
110
packages : [ {
104
111
name : "modules" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,11 @@ define([
14
14
context = getNewContext ( ) ;
15
15
require . config ( {
16
16
context : context ,
17
- baseUrl : "../../../requirejs-dplugins" , // note: "../../.." make "grunt intern:remote" fail
17
+ //note: BaseUrl is relative to requirejs-dplugins/node_modules/intern/ so baseUrl needs 3 "../"
18
+ // to be able to access requirejs-dplugins sibling directories.
19
+ // The last /requirejs-dplugins is here to allow to use i18n! directly instead of
20
+ // requirejs-dplugins/i18n!
21
+ baseUrl : "../../../requirejs-dplugins" ,
18
22
packages : [ {
19
23
name : "myapp" ,
20
24
location : "tests/unit/resources/app/dist/myapp"
Original file line number Diff line number Diff line change 1
- /* global context:true, onlyLayer:true */
2
1
define ( [
3
2
"intern!object" ,
4
3
"intern/chai!assert"
5
4
] , function ( registerSuite , assert ) {
6
5
var index = 0 ;
7
6
function getContextRequire ( ) {
8
7
return require . config ( {
8
+ //note: BaseUrl is relative to requirejs-dplugins/node_modules/intern/ so baseUrl needs 3 "../"
9
+ // to be able to access requirejs-dplugins sibling directories.
9
10
baseUrl : "../../.." ,
10
11
context : "jquery" + index ++
11
12
} ) ;
You can’t perform that action at this time.
0 commit comments