capybara-webkit 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/capybara-webkit.gemspec +2 -2
- data/spec/driver_spec.rb +5 -0
- data/src/Visit.cpp +6 -2
- data/src/Visit.h +0 -1
- metadata +9 -8
data/capybara-webkit.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "capybara-webkit"
|
3
|
-
s.version = "0.4.
|
3
|
+
s.version = "0.4.1"
|
4
4
|
s.authors = ["thoughtbot", "Joe Ferris", "Jason Morrison", "Tristan Dunn",
|
5
5
|
"Joshua Clayton", "Yuichi Tateno", "Aaron Gibralter",
|
6
|
-
"Vasily Reys", "petrushka", "John Bintz",
|
6
|
+
"Vasily Reys", "petrushka", "John Bintz", "Chad Pytel",
|
7
7
|
"Christopher Meiklejohn", "John Barker", "Jeremy Wells"]
|
8
8
|
s.email = "support@thoughtbot.com"
|
9
9
|
s.files = `git ls-files`.split("\n")
|
data/spec/driver_spec.rb
CHANGED
@@ -167,6 +167,11 @@ describe Capybara::Driver::Webkit do
|
|
167
167
|
subject.current_url.should =~ /hello%20there/
|
168
168
|
end
|
169
169
|
|
170
|
+
it "visits a page with an anchor" do
|
171
|
+
subject.visit("/hello#display_none")
|
172
|
+
subject.current_url.should =~ /hello#display_none/
|
173
|
+
end
|
174
|
+
|
170
175
|
it "returns the source code for the page" do
|
171
176
|
subject.source.should =~ %r{<html>.*greeting.*}m
|
172
177
|
end
|
data/src/Visit.cpp
CHANGED
@@ -7,7 +7,12 @@ Visit::Visit(WebPage *page, QObject *parent) : Command(page, parent) {
|
|
7
7
|
}
|
8
8
|
|
9
9
|
void Visit::start(QStringList &arguments) {
|
10
|
-
|
10
|
+
QUrl requestedUrl = QUrl(arguments[0]);
|
11
|
+
page()->currentFrame()->setUrl(QUrl(requestedUrl));
|
12
|
+
if(requestedUrl.hasFragment()) {
|
13
|
+
// workaround for https://bugs.webkit.org/show_bug.cgi?id=32723
|
14
|
+
page()->currentFrame()->setUrl(QUrl(requestedUrl));
|
15
|
+
}
|
11
16
|
}
|
12
17
|
|
13
18
|
void Visit::loadFinished(bool success) {
|
@@ -17,4 +22,3 @@ void Visit::loadFinished(bool success) {
|
|
17
22
|
|
18
23
|
emit finished(new Response(success, message));
|
19
24
|
}
|
20
|
-
|
data/src/Visit.h
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-webkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- thoughtbot
|
@@ -20,6 +20,7 @@ authors:
|
|
20
20
|
- Vasily Reys
|
21
21
|
- petrushka
|
22
22
|
- John Bintz
|
23
|
+
- Chad Pytel
|
23
24
|
- Christopher Meiklejohn
|
24
25
|
- John Barker
|
25
26
|
- Jeremy Wells
|
@@ -27,11 +28,12 @@ autorequire:
|
|
27
28
|
bindir: bin
|
28
29
|
cert_chain: []
|
29
30
|
|
30
|
-
date: 2011-
|
31
|
+
date: 2011-06-02 00:00:00 -04:00
|
31
32
|
default_executable:
|
32
33
|
dependencies:
|
33
34
|
- !ruby/object:Gem::Dependency
|
34
|
-
|
35
|
+
name: capybara
|
36
|
+
prerelease: false
|
35
37
|
requirement: &id001 !ruby/object:Gem::Requirement
|
36
38
|
none: false
|
37
39
|
requirements:
|
@@ -43,9 +45,8 @@ dependencies:
|
|
43
45
|
- 4
|
44
46
|
- 1
|
45
47
|
version: 0.4.1
|
48
|
+
type: :runtime
|
46
49
|
version_requirements: *id001
|
47
|
-
name: capybara
|
48
|
-
prerelease: false
|
49
50
|
description:
|
50
51
|
email: support@thoughtbot.com
|
51
52
|
executables: []
|
@@ -142,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
143
|
requirements: []
|
143
144
|
|
144
145
|
rubyforge_project:
|
145
|
-
rubygems_version: 1.
|
146
|
+
rubygems_version: 1.4.1
|
146
147
|
signing_key:
|
147
148
|
specification_version: 3
|
148
149
|
summary: Headless Webkit driver for Capybara
|