File: ios_app_test.rb

package info (click to toggle)
ruby-browser 5.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 872 kB
  • sloc: ruby: 4,752; makefile: 13
file content (19 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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