This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 4 files changed +23
-18
lines changed
4 files changed +23
-18
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html ng-app ="test " ng-jq >
3
3
4
- < div ng-controller ="TestCtrl ">
5
- < p > {{text}}</ p >
6
- </ div >
7
-
8
4
< script src ="../../../../bower_components/jquery/dist/jquery.js "> </ script >
9
5
< script src ="angular.js "> </ script >
10
- < script src ="script.js "> </ script >
6
+ < script >
7
+ angular . module ( 'test' , [ ] ) ;
8
+ </ script >
11
9
</ html >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html ng-app ="test " ng-jq ="jQuery_2_0_0 ">
3
+
4
+ < script src ="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js "> </ script >
5
+ < script >
6
+ var jQuery_2_0_0 = $ . noConflict ( true ) ;
7
+ </ script >
8
+ < script src ="../../../../bower_components/jquery/dist/jquery.js "> </ script >
9
+ < script src ="angular.js "> </ script >
10
+ < script >
11
+ angular . module ( 'test' , [ ] ) ;
12
+ </ script >
13
+ </ html >
Original file line number Diff line number Diff line change 1
- // Sample E2E test:
2
- //
3
- describe ( 'Force jqlite' , function ( ) {
4
- beforeEach ( function ( ) {
1
+ describe ( 'Customizing the jqlite / jquery version' , function ( ) {
2
+
3
+ it ( 'should be able to force jqlite' , function ( ) {
5
4
loadFixture ( "ngJq" ) . andWaitForAngular ( ) ;
5
+ expect ( browser . executeScript ( 'return window.angular.element !== window.jQuery' ) ) . toBe ( true ) ;
6
6
} ) ;
7
7
8
- it ( 'should use jqlite' , function ( ) {
9
- expect ( element ( by . binding ( 'text' ) ) . getText ( ) )
10
- . toBe ( 'Hello, world!' ) ;
11
-
12
- // expect(browser.executeScript('return window.angular.jq();')).toBe('');
8
+ it ( 'should be able to use a specific version jQuery' , function ( ) {
9
+ loadFixture ( "ngJqJquery" ) . andWaitForAngular ( ) ;
10
+ expect ( browser . executeScript ( 'return window.angular.element !== window.jQuery_2_0_0' ) ) . toBe ( true ) ;
13
11
} ) ;
14
12
} ) ;
You can’t perform that action at this time.
0 commit comments