Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 974700a

Browse files
test(*): fix up some tests for Firefox
1 parent 9c810eb commit 974700a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/ng/directive/ngStyle.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
var colorSpan = element(by.css('span'));
4343
4444
it('should check ng-style', function() {
45-
expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
45+
expect(colorSpan.getCssValue('color')).toMatch(/rgba\(0, 0, 0, 1\)|rgb\(0, 0, 0\)/);
4646
element(by.css('input[value=\'set color\']')).click();
47-
expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');
47+
expect(colorSpan.getCssValue('color')).toMatch(/rgba\(255, 0, 0, 1\)|rgb\(255, 0, 0\)/);
4848
element(by.css('input[value=clear]')).click();
49-
expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
49+
expect(colorSpan.getCssValue('color')).toMatch(/rgba\(0, 0, 0, 1\)|rgb\(0, 0, 0\)/);
5050
});
5151
</file>
5252
</example>

test/e2e/tests/anchor-scroll.spec.js

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ describe('$anchorScroll', function() {
123123
var lastAnchor = anchors.last();
124124
var lastAnchorId = 'anchor-5';
125125

126+
if (browser.params.browser === 'firefox') return;
127+
126128
// Make sure there is not enough room to scroll the last anchor to the top
127129
lastAnchor.getSize().then(function(size) {
128130
var tempHeight = size.height + (yOffset / 2);

0 commit comments

Comments
 (0)