Skip to content

Commit

Permalink
Updated google expect example and jshint for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beatfactor committed May 31, 2015
1 parent 3acc774 commit 398c3ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions Gruntfile.js
Expand Up @@ -19,12 +19,6 @@ module.exports = function(grunt) {
lib: {
src: ['index.js', 'lib/**/*.js']
},
tests: [
'tests/*.js',
'tests/extra/**/*.js',
'tests/src/**/*.js',
'tests/sampletests/**/*.js'
],
gruntfile: {
src: 'Gruntfile.js'
},
Expand Down
4 changes: 3 additions & 1 deletion examples/tests/google.js
@@ -1,3 +1,4 @@
/* jshint expr: true */
module.exports = {
tags: ['google'],
'Demo test Google' : function (client) {
Expand All @@ -6,11 +7,12 @@ module.exports = {
.pause(1000);

client.expect.element('body').to.be.present.before(1000);
client.expect.element('#lst-ib').to.have.css('display') //.matches(/block/).before(2000);
client.expect.element('#lst-ib').to.have.css('display');

client.expect.element('body').to.have.attribute('class').which.contains('vasq');
client.expect.element('body').to.have.attribute('class').which.matches(/vasq$/);
client.expect.element('body').to.have.attribute('class').before(1000);

client.expect.element('#lst-ib').to.be.enabled;

client.expect.element('#hplogo').text.to.match(/Norge/).before(1000);
Expand Down

0 comments on commit 398c3ad

Please sign in to comment.