Skip to content

Commit 283a194

Browse files
committed
Tests: Blacklist the iframe scrollTop test in Opera 12.1x
1 parent f6dd767 commit 283a194

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/offset.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,11 @@ QUnit.test( "iframe scrollTop/Left (see gh-1945)", function( assert ) {
575575
// Mobile Safari and Android 2.3 resize the iframe by its content
576576
// meaning it's not possible to scroll the iframe only its parent element.
577577
// It seems (not confirmed) in android 4.0 it's not possible to scroll iframes from the code.
578+
// Opera 12.1x also has problems with this test.
578579
if ( /iphone os/i.test( navigator.userAgent ) ||
579580
/android 2\.3/i.test( navigator.userAgent ) ||
580-
/android 4\.0/i.test( navigator.userAgent ) ) {
581+
/android 4\.0/i.test( navigator.userAgent ) ||
582+
/opera.*version\/12\.1/i.test( navigator.userAgent ) ) {
581583
assert.equal( true, true, "Can't scroll iframes in this environment" );
582584
assert.equal( true, true, "Can't scroll iframes in this environment" );
583585

0 commit comments

Comments
 (0)