vapir-common 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/vapir-common.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Vapir
2
2
  module Common
3
- VERSION = '1.7.1'
3
+ VERSION = '1.7.2'
4
4
  end
5
5
  end
6
6
  require 'vapir-common/browser'
@@ -741,7 +741,7 @@ module Vapir
741
741
  if !@highlighting && options[:highlight]
742
742
  handling_existence_failure do
743
743
  assert_exists :force => true
744
- clear_highlight(highlight_options)
744
+ clear_highlight(options)
745
745
  end
746
746
  end
747
747
  end
@@ -446,10 +446,10 @@ module Vapir
446
446
  assert_enabled
447
447
  if checked!=state
448
448
  element_object.checked=state
449
- fire_event(:onchange, options) if exists? # don't fire event if we stopped existing due to change in state
449
+ handling_existence_failure { fire_event(:onchange, options) } # we may stop existing due to change in state
450
450
  end
451
- if state && exists?
452
- fire_event(:onclick, options) # fire this even if the state doesn't change; javascript can respond to clicking an already-checked radio.
451
+ if state
452
+ handling_existence_failure { fire_event(:onclick, options) } # fire this even if the state doesn't change; javascript can respond to clicking an already-checked radio.
453
453
  end
454
454
  wait if options[:wait]
455
455
  end
@@ -483,8 +483,8 @@ module Vapir
483
483
  # todo/fix: this is browser-specific stuff, shouldn't it be in the browser-specific class?
484
484
  element_object.checked=state
485
485
  end
486
- fire_event(:onclick, options) if exists? # sometimes previous actions can cause self to stop existing
487
- fire_event(:onchange, options) if exists?
486
+ handling_existence_failure { fire_event(:onclick, options) } # sometimes previous actions can cause self to stop existing
487
+ handling_existence_failure { fire_event(:onchange, options) }
488
488
  end
489
489
  wait if options[:wait]
490
490
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vapir-common
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 15
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 7
8
- - 1
9
- version: 1.7.1
9
+ - 2
10
+ version: 1.7.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Ethan
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-08-23 00:00:00 -04:00
18
+ date: 2011-01-13 00:00:00 -05:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 3
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
@@ -80,6 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
82
  requirements:
81
83
  - - ">="
82
84
  - !ruby/object:Gem::Version
85
+ hash: 3
83
86
  segments:
84
87
  - 0
85
88
  version: "0"
@@ -88,6 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
91
  requirements:
89
92
  - - ">="
90
93
  - !ruby/object:Gem::Version
94
+ hash: 3
91
95
  segments:
92
96
  - 0
93
97
  version: "0"