Skip to content

Commit

Permalink
removed unnecessary html version of the test.php file
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Apr 10, 2013
1 parent 05cdb35 commit 3f946d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 96 deletions.
8 changes: 6 additions & 2 deletions test/commands-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('test webdriverjs API', function(){
client.init();

// load source of testpage for getSource() test
fs.readFile('./test/indexWithoutPHP.html', function (err, html) {
fs.readFile('./test/index.php', function (err, html) {
if (err) {
throw err;
}
Expand Down Expand Up @@ -96,6 +96,10 @@ describe('test webdriverjs API', function(){
})
.getSource(function(err,result) {
expect(err).to.be.null;

// remove not visible php code
testpageSource = testpageSource.replace(/<\?php[^?]*\?>\n/g,'');

assert.strictEqual(result,testpageSource);
})
.getTagName('.black', function(err,result) {
Expand All @@ -117,7 +121,7 @@ describe('test webdriverjs API', function(){
.call(done);
});

it.only('should set, get and delete cookies',function(done) {
it('should set, get and delete cookies',function(done) {
client
.url(testpageURL)
.setCookie({name: 'test',value: 'cookie saved!'})
Expand Down
94 changes: 0 additions & 94 deletions test/indexWithoutPHP.html

This file was deleted.

0 comments on commit 3f946d2

Please sign in to comment.