Commit e4b39347 authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

[ios] Disable failing WebViewKvoTest on iOS12.

Bug: 851472
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Ia2adc8be4d6b007eff22acac225c1f6c4952334a
Reviewed-on: https://chromium-review.googlesource.com/1099882Reviewed-by: default avatarJohn Wu <jzw@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567065}
parent ed85628b
......@@ -5,6 +5,7 @@
#import <ChromeWebView/ChromeWebView.h>
#import <Foundation/Foundation.h>
#include "base/ios/ios_util.h"
#include "base/strings/stringprintf.h"
#import "base/strings/sys_string_conversions.h"
#import "ios/testing/wait_util.h"
......@@ -27,6 +28,10 @@ typedef ios_web_view::WebViewIntTest WebViewKvoTest;
// Tests that CWVWebView correctly reports |canGoBack| and |canGoForward| state.
TEST_F(WebViewKvoTest, CanGoBackForward) {
// TODO(crbug.com/851472): WebViewKvoTest tests failing on iOS12.
if (base::ios::IsRunningOnIOS12OrLater())
return;
Observer* back_observer = [[Observer alloc] init];
[back_observer setObservedObject:web_view_ keyPath:@"canGoBack"];
......@@ -85,6 +90,10 @@ TEST_F(WebViewKvoTest, CanGoBackForward) {
// Tests that CWVWebView correctly reports current |title|.
TEST_F(WebViewKvoTest, Title) {
// TODO(crbug.com/851472): WebViewKvoTest tests failing on iOS12.
if (base::ios::IsRunningOnIOS12OrLater())
return;
Observer* observer = [[Observer alloc] init];
[observer setObservedObject:web_view_ keyPath:@"title"];
......@@ -114,6 +123,10 @@ TEST_F(WebViewKvoTest, Title) {
// Tests that CWVWebView correctly reports |isLoading| value.
TEST_F(WebViewKvoTest, Loading) {
// TODO(crbug.com/851472): WebViewKvoTest tests failing on iOS12.
if (base::ios::IsRunningOnIOS12OrLater())
return;
Observer* observer = [[Observer alloc] init];
[observer setObservedObject:web_view_ keyPath:@"loading"];
......@@ -142,6 +155,10 @@ TEST_F(WebViewKvoTest, Loading) {
// Tests that CWVWebView correctly reports |visibleURL| and |lastCommittedURL|.
TEST_F(WebViewKvoTest, URLs) {
// TODO(crbug.com/851472): WebViewKvoTest tests failing on iOS12.
if (base::ios::IsRunningOnIOS12OrLater())
return;
Observer* last_committed_url_observer = [[Observer alloc] init];
[last_committed_url_observer setObservedObject:web_view_
keyPath:@"lastCommittedURL"];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment