From ad275b226551e45b68dace46af5fcd8178e31a60 Mon Sep 17 00:00:00 2001 From: Julie Date: Thu, 6 Feb 2014 11:03:17 -0800 Subject: refactor(doc): separate end to end tests into jquery and jqlite files --- docs/src/ngdoc.js | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'docs/src/ngdoc.js') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 1e8896d0..78f968d9 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -1110,28 +1110,17 @@ function scenarios(docs){ } } -function writeProtractorTest(doc){ +function writeProtractorTest(doc, pathPrefix){ var lines = []; lines.push('describe("' + doc.section + '/' + doc.id + '", function() {'); - 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), 4)); - lines.push(''); - }); + lines.push(' beforeEach(function() {'); + lines.push(' browser.get("' + pathPrefix + doc.section + '/' + doc.id + '");'); 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(' });'); + lines.push(''); doc.protractorTests.forEach(function(test){ - lines.push(indentCode(trim(test), 4)); + lines.push(indentCode(trim(test), 0)); lines.push(''); }); - lines.push(' });'); lines.push('});'); lines.push(''); return lines.join('\n'); -- cgit v1.2.3