Sha256: 4424161c188c65b3d4c433e7f70435170cdc4564ac4918507a2020d4f80dc9c5
Contents?: true
Size: 963 Bytes
Versions: 7
Compression:
Stored size: 963 Bytes
Contents
# frozen_string_literal: true require "test_helper" class WindowPhoneTest < Minitest::Test test "detects windows phone" do browser = Browser.new(Browser["WINDOWS_PHONE"]) assert browser.ie? assert_equal "7", browser.version assert browser.platform.windows_phone? refute browser.platform.windows_mobile? end test "detects windows phone 8" do browser = Browser.new(Browser["WINDOWS_PHONE8"]) assert browser.ie? assert_equal "10", browser.version assert browser.platform.windows_phone? refute browser.platform.windows_mobile? end test "detects windows phone 8.1" do browser = Browser.new(Browser["WINDOWS_PHONE_81"]) assert browser.ie? assert_equal "Internet Explorer", browser.name assert_equal :ie, browser.id assert_equal "11", browser.version assert_equal "11.0", browser.full_version assert browser.platform.windows_phone? refute browser.platform.windows_mobile? end end
Version data entries
7 entries across 7 versions & 2 rubygems