Sha256: aaed7d032630296757350b3066bb7808fd8ea8a433859521d8ed81104452789a

Contents?: true

Size: 779 Bytes

Versions: 7

Compression:

Stored size: 779 Bytes

Contents

# Copyright (C) 2003-2006 Kouichirou Eto, All rights reserved.
# This is free software with ABSOLUTELY NO WARRANTY.
# You can redistribute it and/or modify it under the terms of the GNU GPL 2.

$LOAD_PATH.unshift '..' unless $LOAD_PATH.include? '..'
require 'qwik/test-common'
require 'qwik/act-theme'

class CheckExternalCss < Test::Unit::TestCase
  include TestSession

  def test_all
    return if $0 != __FILE__		# Only for separated test.

    # test_extcss_nosuch
    res = session '/.css/http://nosuchhostname/q.css'
    ok_title 'Access Failed'

    # test_extcss_hatena
    res = session '/.css/http://d.hatena.ne.jp/theme/clover/clover.css'
    if @res.body.is_a?(Array)
      ok_title 'Access Failed'
    else
      #eq true, 1000 < @res.body.length
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
qwik2md-2.0.1 vendor/qwik/lib/qwik/check-act-theme.rb
qwik2md-2.0.0 vendor/qwik/lib/qwik/check-act-theme.rb
qwik2md-1.0.2 vendor/qwik/lib/qwik/check-act-theme.rb
qwik2md-1.0.1 vendor/qwik/lib/qwik/check-act-theme.rb
qwik2md-1.0.0 vendor/qwik/lib/qwik/check-act-theme.rb
qwik2md-0.1.0 vendor/qwik/lib/qwik/check-act-theme.rb
qwikdoc-0.0.1 vendor/qwik/check-act-theme.rb