Skip to content

Commit 47a66a3

Browse files
committed
rb - change w3c references to wires in spec guards
1 parent 2730313 commit 47a66a3

File tree

9 files changed

+18
-19
lines changed

9 files changed

+18
-19
lines changed

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
end
2727

2828
# Marionette BUG - AutomatedTester: "I need to add pagesource back and add it to the spec"
29-
not_compliant_on :w3c => true do
29+
not_compliant_on :driver => :wires do
3030
it "should get the page source" do
3131
driver.navigate.to url_for("xhtmlTest.html")
3232
expect(driver.page_source).to match(%r[<title>XHTML Test Page</title>]i)
@@ -215,7 +215,7 @@
215215
end
216216

217217
# Marionette BUG - Not finding local javascript for execution
218-
not_compliant_on :w3c => true do
218+
not_compliant_on :driver => :wires do
219219
it "should be able to call functions on the page" do
220220
driver.navigate.to url_for("javascriptPage.html")
221221
driver.execute_script("displayMessage('I like cheese');")

rb/spec/integration/selenium/webdriver/element_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
end
2828

2929
# Marionette BUG - AutomatedTester: "known bug with execute script"
30-
not_compliant_on :w3c => true do
30+
not_compliant_on :driver => :wires do
3131
it "should submit" do
3232
driver.navigate.to url_for("formPage.html")
3333
driver.find_element(:id, "submitButton").submit
@@ -54,7 +54,7 @@
5454
# PhantomJS on windows issue: https://github.com/ariya/phantomjs/issues/10993
5555
not_compliant_on({:browser => [:android, :iphone, :safari, :edge]},
5656
{:browser => :phantomjs, :platform => :windows},
57-
{:w3c => true}) do
57+
{:driver => :wires}) do
5858
it "should handle file uploads" do
5959
driver.navigate.to url_for("formPage.html")
6060

@@ -132,7 +132,7 @@
132132
end
133133

134134
# Location not currently supported in Spec, but should be?
135-
not_compliant_on :w3c => true do
135+
not_compliant_on :driver => :wires do
136136
it "should get location" do
137137
driver.navigate.to url_for("xhtmlTest.html")
138138
loc = driver.find_element(:class, "header").location
@@ -155,7 +155,7 @@
155155
# Marionette BUG:
156156
# GET /session/f7082a32-e685-2843-ad2c-5bb6f376dac5/element/b6ff4468-ed6f-7c44-be4b-ca5a3ea8bf26/size
157157
# did not match a known command"
158-
not_compliant_on :w3c => true do
158+
not_compliant_on :driver => :wires do
159159
it "should get size" do
160160
driver.navigate.to url_for("xhtmlTest.html")
161161
size = driver.find_element(:class, "header").size

rb/spec/integration/selenium/webdriver/keyboard_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module WebDriver
2424

2525
# Marionette BUG - Interactions Not Supported
2626
not_compliant_on({:browser => [:chrome, :android, :iphone, :safari]},
27-
{:w3c => true}) do
27+
{:driver => :wires}) do
2828
describe Keyboard do
2929
it "sends keys to the active element" do
3030
driver.navigate.to url_for("bodyTypingTest.html")

rb/spec/integration/selenium/webdriver/mouse_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module WebDriver
2626

2727
# Marionette BUG - Interactions Not Supported
2828
not_compliant_on({:browser => [:android, :iphone, :safari]},
29-
{:w3c => true}) do
29+
{:driver => :wires}) do
3030
it "clicks an element" do
3131
driver.navigate.to url_for("formPage.html")
3232
driver.mouse.click driver.find_element(:id, "imageButton")

rb/spec/integration/selenium/webdriver/options_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module WebDriver
2424
describe Options do
2525

2626
# Not supported in W3C Spec
27-
not_compliant_on :w3c => true do
27+
not_compliant_on :driver => :wires do
2828
describe 'logs' do
2929
compliant_on :driver => [:firefox] do
3030
it 'can fetch available log types' do
@@ -86,7 +86,7 @@ module WebDriver
8686

8787
# Marionette BUG - Failed to convert expiry to Date
8888
not_compliant_on({:browser => [:ie, :android, :iphone, :safari]},
89-
{:w3c => true}) do
89+
{:driver => :wires}) do
9090
it "should use DateTime for expires" do
9191
driver.navigate.to url_for("xhtmlTest.html")
9292

rb/spec/integration/selenium/webdriver/spec_support/guards.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def current_env
7676
:driver => GlobalTestEnv.driver,
7777
:platform => Platform.os,
7878
:native => GlobalTestEnv.native_events?,
79-
:window_manager => !!ENV['DESKTOP_SESSION'],
80-
:w3c => GlobalTestEnv.driver == :wires
79+
:window_manager => !!ENV['DESKTOP_SESSION']
8180
}
8281
end
8382

rb/spec/integration/selenium/webdriver/target_locator_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# Marionette Bug -
3131
# POST /session/f7082a32-e685-2843-ad2c-5bb6f376dac5/element/active
3232
# did not match a known command
33-
not_compliant_on :w3c => true do
33+
not_compliant_on :driver => :wires do
3434
it "should find the active element" do
3535
driver.navigate.to url_for("xhtmlTest.html")
3636
expect(driver.switch_to.active_element).to be_an_instance_of(WebDriver::Element)
@@ -55,7 +55,7 @@
5555

5656
# Marionette Bug - Marionette Error: switchToParentFrame
5757
not_compliant_on({:browser => [:safari, :phantomjs]},
58-
{:w3c => true}) do
58+
{:driver => :wires}) do
5959
it "should switch to parent frame" do
6060
driver.navigate.to url_for("iframes.html")
6161

@@ -126,7 +126,7 @@
126126
end
127127

128128
# Marionette BUG: Automatically switches browsing context to new window when it opens.
129-
not_compliant_on :w3c => true do
129+
not_compliant_on :driver => :wires do
130130
it "should close current window when more than two windows exist" do
131131
driver.navigate.to url_for("xhtmlTest.html")
132132
driver.find_element(:link, "Create a new anonymous window").click
@@ -248,7 +248,7 @@
248248
# Says message should be an array (I think), but we're getting
249249
# InvalidArgumentError: 'message' not a string
250250
# When trying a string, error: keysToSend.join is not a function
251-
not_compliant_on :w3c => true do
251+
not_compliant_on :driver => :wires do
252252
it "allows the user to set the value of a prompt" do
253253
driver.navigate.to url_for("alerts.html")
254254
driver.find_element(:id => "prompt").click
@@ -293,7 +293,7 @@
293293
# Marionette BUG - Allows driver calls with alert present
294294
# Spec says: "If the subsequent requested command is not one listed
295295
# in this chapter, an unexpected alert open error will be returned."
296-
not_compliant_on :w3c => true do
296+
not_compliant_on :driver => :wires do
297297

298298
it "raises an UnhandledAlertError if an alert has not been dealt with" do
299299
driver.navigate.to url_for("alerts.html")

rb/spec/integration/selenium/webdriver/timeout_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
expect(driver.find_elements(:class_name => "redbox")).to be_empty
6464
end
6565

66-
not_compliant_on(:w3c => true, :platform => :windows) do
66+
not_compliant_on(:driver => :wires, :platform => :windows) do
6767
it "should return after first attempt to find many after disabling implicit waits" do
6868
add = driver.find_element(:id => "adder")
6969

rb/spec/integration/selenium/webdriver/window_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module WebDriver
5050
# Marionette BUG -
5151
# GET /session/2146a9d2-690a-4844-a5f4-e38b02d670c3/window/:window_handle/position
5252
# did not match a known command
53-
not_compliant_on :w3c => true do
53+
not_compliant_on :driver => :wires do
5454
it "gets the position of the current window" do
5555
pos = driver.manage.window.position
5656

0 commit comments

Comments
 (0)