axe-core-api 4.3.1.pre.8005df2 → 4.3.2.pre.17fb7c9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7b9155ebd003d376eb06985f2916e9acbbdac618514391c8760482520ed266f
4
- data.tar.gz: c0e4a2eb92602e1a3e764cc65b3ac8d1def86efed862037f74758bba44dca58d
3
+ metadata.gz: 4dd4ba6e7bb503b0ec7c92bcef3169c33beb2e7059ae6bce845de69971102be3
4
+ data.tar.gz: 72ac14d273a1d6bb078dff18643abb1de23c2100b74d9363694c0ede35d690bf
5
5
  SHA512:
6
- metadata.gz: 616d1cbb12c1fd0066ba2a2bfc6c9098094267e4d6126ee54949147c8786ca3f485d409b86bbdd4c98c2f4a555b1790dd2c4f895a0426798b90b70381504c462
7
- data.tar.gz: b8babe03918c71aa9928928c5a142e47f8311fdccc19dd5ecc57e15e007fbad4230dadbee0172da4ff3accbc1087ab03f32eeaeca6bdc9d9eba54701a107fc81
6
+ metadata.gz: d8bed6fe9c1ac2c834d5c0cb0a11394121bbc62a8d6c1d88e96282891d10b7202a182abdeeb555240f606bf7509b742eb2f075c4125eb3797facad603b51ccaa
7
+ data.tar.gz: 12ac0d4c9335b1f0779df946f42dfebd8875b0a0238d2ca01566773e722c2643400b90c02aa4f67b651e7192b268b43383a91940a48af4ad0acd7a9807c027ca
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
@@ -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 = {