Sha256: 600d8f0ac35304dc4ff3ead8b01e05c978898487e4e5422d429cf0d625c4fc8c

Contents?: true

Size: 361 Bytes

Versions: 21

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class IosAppTest < Minitest::Test
  let(:browser) { Browser.new(Browser["IOS_WEBVIEW"]) }

  test "detect as ios" do
    assert browser.platform.ios?
  end

  test "don't detect as safari" do
    refute browser.safari?
  end

  test "detect as webview" do
    assert browser.platform.ios_webview?
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
browser-5.3.1 test/unit/ios_app_test.rb
browser-5.3.0 test/unit/ios_app_test.rb
browser-5.2.0 test/unit/ios_app_test.rb
browser-5.1.0 test/unit/ios_app_test.rb
browser-5.0.0 test/unit/ios_app_test.rb
browser-4.2.0 test/unit/ios_app_test.rb
browser-4.1.0 test/unit/ios_app_test.rb
browser-4.0.0 test/unit/ios_app_test.rb
browser-3.0.3 test/unit/ios_app_test.rb
browser-3.0.2 test/unit/ios_app_test.rb
browser-3.0.1 test/unit/ios_app_test.rb
browser-3.0.0 test/unit/ios_app_test.rb
browser-2.7.1 test/unit/ios_app_test.rb
browser-2.7.0 test/unit/ios_app_test.rb
browser-2.6.1 test/unit/ios_app_test.rb
browser-2.6.0 test/unit/ios_app_test.rb
browser-2.5.3 test/unit/ios_app_test.rb
browser-2.5.2 test/unit/ios_app_test.rb
browser-2.5.1 test/unit/ios_app_test.rb
browser-2.5.0 test/unit/ios_app_test.rb