Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 27787d8

Browse files
committed
wip: e2e tests for ngJq
1 parent 8927c94 commit 27787d8

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

test/e2e/fixtures/ngJq/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html ng-app="test" ng-jq>
3+
4+
<div ng-controller="TestCtrl">
5+
<p>{{text}}</p>
6+
</div>
7+
8+
<script src="../../../../bower_components/jquery/dist/jquery.js"></script>
9+
<script src="angular.js"></script>
10+
<script src="script.js"></script>
11+
</html>

test/e2e/fixtures/ngJq/script.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
angular.module("test", []).
2+
controller("TestCtrl", function($scope) {
3+
$scope.text = "Hello, world!";
4+
});

test/e2e/tests/ngJqSpec.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Sample E2E test:
2+
//
3+
describe('Force jqlite', function() {
4+
beforeEach(function() {
5+
loadFixture("ngJq").andWaitForAngular();
6+
});
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('');
13+
});
14+
});

0 commit comments

Comments
 (0)