8000 adding in volatile plugin test. · xcoderzach/requirejs@8240c97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8240c97

Browse files
committed
adding in volatile plugin test.
1 parent aedd973 commit 8240c97

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/all.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ doh.registerUrl("pluginsSync", "../plugins/sync.html");
6868
doh.registerUrl("doublePluginCall", "../plugins/double.html");
6969
doh.registerUrl("pluginsNameOnly", "../plugins/nameOnly.html");
7070
doh.registerUrl("pluginsFromText", "../plugins/fromText/fromText.html");
71+
doh.registerUrl("pluginsVolatile", "../plugins/volatile/volatile.html");
7172
doh.registerUrl("text", "../text/text.html");
7273
doh.registerUrl("textOnly", "../text/textOnly.html");
7374
doh.registerUrl("textBuilt", "../text/textBuilt.html");

tests/plugins/volatile/volatile-tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ function (pillow, blanket) {
1616
t.is(false, resource === blanket.pillowResource);
1717

1818
//Make sure the paths after the counter ID are not relative.
19-
t.is(true, resource.split(':')[1].indexOf('./pillow') !== -1);
20-
t.is(true, pillow.resource.split(':')[1].indexOf('./pillow') !== -1);
21-
t.is(true, blanket.pillowResource.split(':')[1].indexOf('../pillow') !== -1);
22-
t.is(true, blanket.resource.split(':')[1].indexOf('./blanket') !== -1);
19+
t.is(true, resource.split(':')[1].indexOf('./pillow') === -1);
20+
t.is(true, pillow.resource.split(':')[1].indexOf('./pillow') === -1);
21+
t.is(true, blanket.pillowResource.split(':')[1].indexOf('../pillow') === -1);
22+
t.is(true, blanket.resource.split(':')[1].indexOf('./blanket') === -1);
2323
}
2424
]
2525
);

0 commit comments

Comments
 (0)
0