Sha256: bbba4e489c3a6cc766f86b11fdd919501c4553d51a8cd7498327472be44919df

Contents?: true

Size: 638 Bytes

Versions: 9

Compression:

Stored size: 638 Bytes

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?
  end

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

    assert browser.webkit?
    assert browser.modern?
  end

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

    assert browser.webkit?
    assert browser.modern?
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
browser-2.7.1 test/unit/kindle_test.rb
browser-2.7.0 test/unit/kindle_test.rb
browser-2.6.1 test/unit/kindle_test.rb
browser-2.6.0 test/unit/kindle_test.rb
browser-2.5.3 test/unit/kindle_test.rb
browser-2.5.2 test/unit/kindle_test.rb
browser-2.5.1 test/unit/kindle_test.rb
browser-2.5.0 test/unit/kindle_test.rb
browser-2.4.0 test/unit/kindle_test.rb