mirror of
https://github.com/systemjs/systemjs.git
synced 2026-02-01 15:59:54 +00:00
test update
This commit is contained in:
parent
f97b7d3dff
commit
2a01273557
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
|
||||
3
test/jquery-compare.html
Normal file
3
test/jquery-compare.html
Normal file
@ -0,0 +1,3 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<script src="https://github.jspm.io/components/jquery@2.0.3/jquery.js"></script>
|
||||
@ -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)
|
||||
|
||||
@ -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';
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user