Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:operasoftware/watir3-spec

  • Loading branch information...
commit 7ddcda59240662df4fe17587cbbe5d1af368b174 2 parents fd2abb0 + 260b3c5
Andreas Tolf Tolfsen authored
View
0  README.markdown → README.md
File renamed without changes
View
22 browser_spec.rb
@@ -15,7 +15,7 @@
describe '#driver' do
it 'returns driver object' do
- browser.driver.instance_of?(Java::ComOperaCoreSystems::OperaDriver).should be_true
+ browser.driver.should be_instance_of Java::ComOperaCoreSystems::OperaDriver
end
it 'can access native driver methods' do
@@ -24,17 +24,16 @@
end
describe '#name' do
- # FIXME
it 'is the name of a Watir implementation' do
browser.name.should_not be_empty
end
end
- describe '#url=' do # goto() is an alias
+ describe '#url=' do
it 'opens a new window' do
new_window = browser.url fixture('simple.html')
new_window.exists?.should be_true
- new_window.close
+# new_window.close
end
it 'navigates to a url' do
@@ -52,7 +51,6 @@
it 'exists' do
browser.should respond_to :quit
end
-
=begin
before :each do
browser.quit
@@ -79,23 +77,17 @@
end
after :all do
-# OperaWatir::Helper.reconnect
+ OperaWatir::Helper.reconnect
end
=end
-
end
-
-
=begin
describe '#windows' do
before :all do
- puts 'AFTER QUIT!'
-# browser = OperaWatir::Browser.new
- puts "URL IS NOW: #{browser.active_window.url}"
+ browser = OperaWatir::Browser.new
end
-
it 'is not empty' do
browser.windows.should_not be_empty
end
@@ -139,6 +131,10 @@
end
describe '#connected?' do
+ it 'returns a valid type' do
+ browser.connected?.should be_kind_of (TrueClass || FalseClass)
+ end
+
it 'is attached to a browser instance' do
browser.connected?.should be_true
end
View
1  collection_spec.rb
@@ -369,6 +369,7 @@
@collection.visible?.should be_false
end
end
+
# show!
describe '#show!' do
it 'shows all the elements' do
View
4 element_spec.rb
@@ -355,6 +355,7 @@
@radio_unchecked.checked?.should be_true
end
end
+
# uncheck!
describe '#uncheck!' do
before :each do
@@ -373,6 +374,7 @@
end
end
+=begin
# toggle_check!
describe '#toggle_check!' do
before :each do
@@ -403,6 +405,7 @@
disabled.enabled?.should be_true
end
end
+
# disable!
describe '#disable!' do
it 'disables a form element' do
@@ -432,6 +435,7 @@
hidden.visible?.should be_false
end
end
+=end
describe '#fire_event' do
it 'fires the given event on the element' do
View
2  watirspec_helper.rb
@@ -8,7 +8,7 @@
require 'operawatir/helper'
-OperaWatir.api = 2
+OperaWatir.api = 3
RSpec.configure do |config|
config.mock_with :rr
Please sign in to comment.
Something went wrong with that request. Please try again.