Sha256: eca34b48e20f07f6ff7191f9519ae0ac8ada506b473769856c111b2af1387933
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
Contents
# frozen_string_literal: true require "test_helper" class SafariTest < Minitest::Test test "detect safari 3" do browser = Browser.new(Browser["SAFARI3"]) assert browser.safari? assert browser.safari?(3) assert_equal "3", browser.version assert_equal "3.0.3", browser.full_version end test "detect safari 4" do browser = Browser.new(Browser["SAFARI4"]) assert browser.safari? assert browser.safari?(4) assert_equal "4", browser.version assert_equal "4.0.3", browser.full_version end test "detect safari 5" do browser = Browser.new(Browser["SAFARI5"]) assert browser.safari? assert browser.safari?(5) assert_equal "5", browser.version assert_equal "5.0.3", browser.full_version end test "detect safari 6" do browser = Browser.new(Browser["SAFARI6"]) assert browser.safari? assert browser.safari?(6) assert_equal "6", browser.version assert_equal "6.0", browser.full_version end test "detect safari 7" do browser = Browser.new(Browser["SAFARI7"]) assert browser.safari? assert browser.safari?(7) assert_equal "7", browser.version assert_equal "7.0", browser.full_version end test "detect safari 8" do browser = Browser.new(Browser["SAFARI8"]) assert browser.safari? assert browser.safari?(8) assert_equal "8", browser.version assert_equal "8.0", browser.full_version end test "detect safari 9" do browser = Browser.new(Browser["SAFARI9"]) assert browser.safari? assert browser.safari?(9) assert_equal "9", browser.version assert_equal "9.0.2", browser.full_version end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
browser-2.0.3 | test/unit/safari_test.rb |
browser-2.0.2 | test/unit/safari_test.rb |
browser-2.0.1 | test/unit/safari_test.rb |