test update

This commit is contained in:
guybedford 2013-08-30 22:19:09 +02:00
parent f97b7d3dff
commit 2a01273557
4 changed files with 10 additions and 8 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules

3
test/jquery-compare.html Normal file
View File

@ -0,0 +1,3 @@
<!doctype html>
<html>
<script src="https://github.jspm.io/components/jquery@2.0.3/jquery.js"></script>

View File

@ -6,18 +6,15 @@
<script>
jspm.config({
map: {
'github:jquery/jquery@master/bower_components/sizzle/dist/sizzle': 'github:jquery/sizzle@master/dist/sizzle'
'github:guybedford/jquery@2.0.4/bower_components/sizzle/dist/sizzle': 'github:jquery/sizzle@1.10.7/dist/sizzle'
}
});
</script>
<script>
jspm.import('test-runner', function(runner) {
runner.execute([
{
name: 'Load jQuery from source',
run: function(complete) {
jspm.import('github:jquery/jquery@master/src/jquery', complete);
jspm.import('github:guybedford/jquery@2.0.4/src/jquery', complete);
},
confirm: function($) {
if (!$.fn)

View File

@ -78,7 +78,7 @@
jspm.import(['tests/global-with-dep'], complete);
},
confirm: function(m) {
if (m.jQueryVersion != '1.8.3')
if (m != '1.8.3')
return 'Global dependency not defined';
}
},
@ -88,7 +88,7 @@
jspm.import('tests/inline-depends | tests/inline-depends-dep', complete);
},
confirm: function(m) {
if (m.dep != 'dep')
if (m != 'dep')
return 'Inline depends dependency not defined';
}
},
@ -103,7 +103,7 @@
jspm.import(['mypath:path'], complete);
},
confirm: function(m) {
if (m.p != 'path')
if (m != 'path')
return 'module not loaded';
}
},