Skip to content

Commit 3440598

Browse files
committed
run webdriver spec for all breakpoints
1 parent ca926de commit 3440598

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

test/specs/webdriver.spec.js

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// TODO: run these tests for all breakpoints
2-
3-
describe('matchHeight browser tests', function() {
4-
it('passes all specs in matchHeight.spec.js', function(done) {
1+
describe('matchHeight webdriver', function() {
2+
var runAllTests = function(done, width, height) {
53
browser
4+
.setViewportSize({ width: width, height: height })
65
.url('http://localhost:8000/test/page/test.html')
76
.waitForExist('.jasmine_html-reporter', 5000)
87
.execute(function() {
@@ -16,5 +15,17 @@ describe('matchHeight browser tests', function() {
1615
expect(ret.value.passed).toBe(ret.value.total, 'number of specs passed');
1716
expect(ret.value.failed).toBe(0, 'number of specs failed');
1817
}).call(done);
18+
};
19+
20+
it('passes matchHeight.spec.js at desktop breakpoint', function(done) {
21+
runAllTests(done, 1280, 1024);
22+
});
23+
24+
it('passes matchHeight.spec.js at tablet breakpoint', function(done) {
25+
runAllTests(done, 640, 480);
26+
});
27+
28+
it('passes matchHeight.spec.js at mobile breakpoint', function(done) {
29+
runAllTests(done, 320, 640);
1930
});
2031
});

0 commit comments

Comments
 (0)