~caneypuggies/reformedchurcheslocator/couchapp-backbone

« back to all changes in this revision

Viewing changes to _attachments/js/vendor/requirejs/tests/toUrl/toUrl-tests.js

  • Committer: Tim Black
  • Date: 2013-09-16 22:50:16 UTC
  • Revision ID: tim@alwaysreformed.com-20130916225016-zk8jiba25z33ew7h
Versioned Bower vendor directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require.config({
 
2
    paths: {
 
3
        text: '../../../text/text'
 
4
    }
 
5
});
 
6
 
 
7
require(['main'], function(main) {
 
8
 
 
9
    var subRegExp = /\/sub$/,
 
10
        nestedRegExp = /\/sub\/nested$/;
 
11
 
 
12
    doh.register(
 
13
        "toUrl",
 
14
        [
 
15
            function toUrl(t){
 
16
                t.is(".hidden", main.hidden);
 
17
                t.is("main.html", main.html);
 
18
                t.is("noext", main.noext);
 
19
                t.is("aux", main.util.auxHtml);
 
20
                t.is(true, subRegExp.test(main.util.dotPath));
 
21
                t.is("util", main.util.html);
 
22
 
 
23
                t.is(true, nestedRegExp.test(main.util.thing.dirPath));
 
24
                t.is(true, subRegExp.test(main.util.thing.parentPath));
 
25
                t.is("noext", main.util.thing.noext);
 
26
            }
 
27
        ]
 
28
    );
 
29
    doh.run();
 
30
});