forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d367eb
commit 63761fd
Showing
7 changed files
with
100 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"extends": "../../../.jshintrc-base", | ||
|
||
"globals": { | ||
|
||
/* jasmine / karma */ | ||
"it": false, | ||
"iit": false, | ||
"describe": false, | ||
"ddescribe": false, | ||
"beforeEach": false, | ||
"afterEach": false, | ||
"expect": false, | ||
"jasmine": false, | ||
"spyOn": false, | ||
"waits": false, | ||
"waitsFor": false, | ||
"runs": false, | ||
"dump": false, | ||
|
||
/* e2e */ | ||
"browser": false, | ||
"element": false, | ||
"by": false, | ||
|
||
/* testabilityPatch / matchers */ | ||
"inject": false, | ||
"module": false, | ||
"dealoc": false, | ||
"_jQuery": false, | ||
"_jqLiteMode": false, | ||
"sortedHtml": false, | ||
"childrenTagsOf": false, | ||
"assertHidden": false, | ||
"assertVisible": false, | ||
"provideLog": false, | ||
"spyOnlyCallsWithArgs": false, | ||
"createMockStyleSheet": false, | ||
"browserTrigger": false, | ||
"jqLiteCacheSize": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
'use strict'; | ||
|
||
describe("doc.angularjs.org", function() { | ||
|
||
describe("API pages", function() { | ||
|
||
it("should display links to code on GitHub", function() { | ||
browser.get('index-debug.html#!/api/ng/service/$http'); | ||
expect(element(by.css('.improve-docs')).getAttribute('href')).toMatch(/https?:\/\/github\.com\/angular\/angular\.js\/edit\/.+\/src\/ng\/http\.js/); | ||
|
||
browser.get('index-debug.html#!/api/ng/service/$http'); | ||
expect(element(by.css('.view-source')).getAttribute('href')).toMatch(/https?:\/\/github\.com\/angular\/angular\.js\/tree\/.+\/src\/ng\/http\.js#L\d+/); | ||
}); | ||
|
||
it('should change the page content when clicking a link to a service', function () { | ||
browser.get(''); | ||
|
||
var ngBindLink = element(by.css('.definition-table td a[href="api/ng/directive/ngClick"]')); | ||
ngBindLink.click(); | ||
|
||
var pageBody = element(by.css('h1')); | ||
expect(pageBody.getText()).toEqual('ngClick'); | ||
}); | ||
|
||
|
||
it('should show the functioning input directive example', function () { | ||
browser.get('index-debug.html#!/api/ng/directive/input'); | ||
|
||
// Ensure that the page is loaded before trying to switch frames. | ||
browser.waitForAngular(); | ||
|
||
browser.switchTo().frame('example-input-directive'); | ||
|
||
var nameInput = element(by.model('user.name')); | ||
nameInput.sendKeys('!!!'); | ||
|
||
var code = element.all(by.css('tt')).first(); | ||
expect(code.getText()).toContain('guest!!!'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use strict'; | ||
|
||
var config = require('../protractor-shared-conf').config; | ||
|
||
config.specs = [ | ||
'app/e2e/*.scenario.js' | ||
]; | ||
|
||
config.capabilities = { | ||
browserName: 'chrome', | ||
}; | ||
|
||
exports.config = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters