axe-core-api 4.3.0.pre.99d4475 → 4.3.1.pre.75130b0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/axe/api/run.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 420fd89beddbb618b6c1692ff693f19528f1c46f3eb47057ab94391d12aeaa7c
4
- data.tar.gz: e6def889fc64932b151e3ed07db51e90595e3d23347b668248875db371e5a848
3
+ metadata.gz: 4467bfad2a0b1e261e5b173200c238e3c6e50bd7a2441224d70ae5e241afd9e3
4
+ data.tar.gz: 25da91935c965ddbd959e4d9d1c126160d387bc6ae88f09ac82caedb28c173ff
5
5
  SHA512:
6
- metadata.gz: f0151cd7ab6f0a23994bbb3c6996a2f639538b974c2b5f6ca8e3e576f272afd48546d0f54d3f9280d0b87c1750c1be0d324247f5feb41ee66852ddc096bdc6ae
7
- data.tar.gz: d5d5bbd6d4c833188413ed020e1243e0ee81bec384b68342069c88814ef5f71d4421be30b307d40c0a6069920a23ae611abb06faa422a3da7c28f7c7e1a1ddd2
6
+ metadata.gz: fb6cd1ddbaf51f8f42dbc15916deed81612476eeedd0e06d09d2365a84342790d0f93a50afbfa29a20c3edb00596fc9604ea1f9b75b3f3bebc026a2b727a20a4
7
+ data.tar.gz: 5edfdf49997f4113faf62a1a9c09742b362303814d21549144e9c15b25d452c1809f5e78f83ae4a5d65e9287de7c54c96ab5df73e4008720f35b4becad20f824
data/lib/axe/api/run.rb CHANGED
@@ -53,7 +53,7 @@ module Axe
53
53
  var callback = arguments[arguments.length - 1];
54
54
  var context = arguments[0] || document;
55
55
  var options = arguments[1] || {};
56
- #{METHOD_NAME}(context, options).then(callback);
56
+ #{METHOD_NAME}(context, options).then(res => JSON.parse(JSON.stringify(res))).then(callback);
57
57
  JS
58
58
  page.execute_async_script_fixed script, *js_args
59
59
  end
@@ -79,7 +79,7 @@ module Axe
79
79
  end
80
80
  driver.switch_to.window page.window_handles[-1]
81
81
  rescue
82
- raise StandardError.new "switchToWindow failed. Are you using updated browser drivers?"
82
+ raise StandardError.new "switchToWindow failed. Are you using updated browser drivers? Please check out https://github.com/dequelabs/axe-core-gems/blob/develop/error-handling.md"
83
83
  end
84
84
  driver.get "about:blank"
85
85
 
@@ -160,7 +160,7 @@ module Axe
160
160
  const options = arguments[1];
161
161
  const cb = arguments[arguments.length - 1];
162
162
  try {
163
- const ret = window.axe.runPartial(context, options);
163
+ const ret = window.axe.runPartial(context, options).then(res => JSON.parse(JSON.stringify(res)));
164
164
  cb(ret);
165
165
  } catch (err) {
166
166
  const ret = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axe-core-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0.pre.99d4475
4
+ version: 4.3.1.pre.75130b0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deque Systems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-21 00:00:00.000000000 Z
11
+ date: 2021-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dumb_delegator