diff options
| author | Julie | 2014-01-30 18:49:58 -0800 | 
|---|---|---|
| committer | Igor Minar | 2014-02-05 15:39:59 -0800 | 
| commit | 0e85ca9ddb5f259908400463764fd6141977b341 (patch) | |
| tree | 88f0a17d6e1830a75c4c80451e7a84e559c95b2f /docs | |
| parent | e7face4728d3aed6dc089966d489d0c93b65913d (diff) | |
| download | angular.js-0e85ca9ddb5f259908400463764fd6141977b341.tar.bz2 | |
chore(testing): run end to end tests on firefox and safari as well as chrome
Update the Travis and Jenkins configs to run protractor tests on Safari and Firefox as well,
and make the Travis tests run output XML and turn off color.
Fix tests which were failing in Firefox due to clear() not working as expected.
Fix tests which were failing in Safari due to SafariDriver not understanding the minus key,
and disable tests which SafariDriver has no support for.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/guide/expression.ngdoc | 4 | ||||
| -rw-r--r-- | docs/src/ngdoc.js | 19 | 
2 files changed, 19 insertions, 4 deletions
| diff --git a/docs/content/guide/expression.ngdoc b/docs/content/guide/expression.ngdoc index f1e2735b..99cc7514 100644 --- a/docs/content/guide/expression.ngdoc +++ b/docs/content/guide/expression.ngdoc @@ -110,6 +110,10 @@ prevent accidental access to the global state (a common source of subtle bugs).  </doc:source>  <doc:protractor>    it('should calculate expression in binding', function() { +    if (browser.params.browser = 'safari') { +      // Safari can't handle dialogs. +      return; +    };      element(by.css('[ng-click="greet()"]')).click();      var alertDialog = browser.switchTo().alert(); diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 970f5c56..1e8896d0 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -1113,14 +1113,25 @@ function scenarios(docs){  function writeProtractorTest(doc){    var lines = [];    lines.push('describe("' + doc.section + '/' + doc.id + '", function() {'); -  lines.push('  beforeEach(function() {'); -  lines.push('    browser.get("index-nocache.html#!/' + doc.section + '/' + doc.id + '");'); -  lines.push('  });'); +  lines.push('  describe("angular+jqLite", function() {') +  lines.push('    beforeEach(function() {'); +  lines.push('      browser.get("index-nocache.html#!/' + doc.section + '/' + doc.id + '");'); +  lines.push('    });');    lines.push('');    doc.protractorTests.forEach(function(test){ -    lines.push(indentCode(trim(test), 2)); +    lines.push(indentCode(trim(test), 4)); +    lines.push(''); +  }); +  lines.push('  });'); +  lines.push('  describe("angular+jQuery", function() {') +  lines.push('    beforeEach(function() {'); +  lines.push('      browser.get("index-jq-nocache.html#!/' + doc.section + '/' + doc.id + '");'); +  lines.push('    });'); +  doc.protractorTests.forEach(function(test){ +    lines.push(indentCode(trim(test), 4));      lines.push('');    }); +  lines.push('  });');    lines.push('});');    lines.push('');    return lines.join('\n'); | 
