Sha256: 05ee67703f7ec483137d5da05706d42ba79d19080c2c2cc15f174ad8984a7d0f

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

require "test_helper"

class KindleTest < Minitest::Test
  test "detects kindle monochrome" do
    browser = Browser.new(Browser["KINDLE"])
    assert browser.webkit?
  end

  test "detects kindle fire" do
    browser = Browser.new(Browser["KINDLE_FIRE"])
    assert browser.webkit?

    browser = Browser.new(Browser["KINDLE_SILK_TABLET"])
    assert browser.webkit?

    browser = Browser.new(Browser["KINDLE_SILK_DESKTOP"])
    assert browser.webkit?

    browser = Browser.new(Browser["KINDLE_SILK_MOBILE"])
    assert browser.webkit?

    browser = Browser.new(Browser["KINDLE_SILK_TABLET_1ST_GEN"])
    assert browser.webkit?

    browser = Browser.new(Browser["KINDLE_SILK_MOBILE_1ST_GEN"])
    assert browser.webkit?
  end

  test "detects kindle fire hd" do
    browser = Browser.new(Browser["KINDLE_FIRE_HD"])

    assert browser.webkit?
  end

  test "detects kindle fire hd mobile" do
    browser = Browser.new(Browser["KINDLE_FIRE_HD_MOBILE"])

    assert browser.webkit?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
browser-6.1.0 test/unit/kindle_test.rb
browser-6.0.0 test/unit/kindle_test.rb