Sha256: 5c2c6f47699a691ae2166e18c650fe8d2fc313b5e58fa157420a98698f813d2a
Contents?: true
Size: 1.2 KB
Versions: 8
Compression:
Stored size: 1.2 KB
Contents
# frozen_string_literal: true require "test_helper" class QQTest < Minitest::Test test "detects QQ browser for iOS" do browser = Browser.new(Browser["QQ_BROWSER_IOS"]) assert_equal "6.3.3.432", browser.full_version assert_equal "QQ Browser", browser.name assert_equal :qq, browser.id refute browser.chrome? refute browser.safari? end test "detects QQ browser for Android" do browser = Browser.new(Browser["QQ_BROWSER_ANDROID"]) assert_equal "6.2", browser.full_version assert_equal "QQ Browser", browser.name assert_equal :qq, browser.id refute browser.chrome? refute browser.safari? end test "detects QQ browser for Mac" do browser = Browser.new(Browser["QQ_BROWSER_MAC"]) assert_equal "4.2.4753.400", browser.full_version assert_equal "QQ Browser", browser.name assert_equal :qq, browser.id refute browser.chrome? refute browser.safari? end test "detects QQ browser lite for Mac" do browser = Browser.new(Browser["QQ_BROWSER_MAC_LITE"]) assert_equal "1.0.4", browser.full_version assert_equal "QQ Browser", browser.name assert_equal :qq, browser.id refute browser.chrome? refute browser.safari? end end
Version data entries
8 entries across 8 versions & 1 rubygems