~ubuntu-branches/ubuntu/trusty/almond/trusty

« back to all changes in this revision

Viewing changes to tests/plugins/pluginMapSameName/pluginMapSameName.js

  • Committer: Package Import Robot
  • Author(s): Georges Khaznadar
  • Date: 2013-11-02 16:28:01 UTC
  • Revision ID: package-import@ubuntu.com-20131102162801-c33r5wt6efwq52n7
Tags: upstream-0.2.6
ImportĀ upstreamĀ versionĀ 0.2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
define('plugin/plugin',{
 
3
    load: function (id, require, load, config) {
 
4
        load(id);
 
5
    }
 
6
});
 
7
 
 
8
 
 
9
require({
 
10
    map: {
 
11
        '*': {
 
12
            'plugin': 'plugin/plugin'
 
13
        }
 
14
    }
 
15
}, ['plugin!foo'], function (value) {
 
16
 
 
17
    doh.register(
 
18
        'pluginMapSameName',
 
19
        [
 
20
            function pluginMapSameName(t){
 
21
                t.is('foo', value);
 
22
            }
 
23
        ]
 
24
    );
 
25
    doh.run();
 
26
 
 
27
});
 
28
 
 
29
define("pluginMapSameName-tests", function(){});