jasmine-core 2.6.4 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,22 @@
1
+ (function(env) {
2
+ function hasFunctioningMaps() {
3
+ if (typeof Map === 'undefined') { return false; }
4
+
5
+ try {
6
+ var s = new Map([['a', 4]]);
7
+ if (s.size !== 1) { return false; }
8
+ if (s.keys().next().value !== 'a') { return false; }
9
+ if (s.values().next().value !== 4) { return false; }
10
+ return true;
11
+ } catch(e) {
12
+ return false;
13
+ }
14
+ }
15
+
16
+ env.requireFunctioningMaps = function() {
17
+ if (!hasFunctioningMaps()) {
18
+ env.pending("Browser has incomplete or missing support for Maps");
19
+ }
20
+ };
21
+
22
+ })(jasmine.getEnv());
@@ -691,14 +691,15 @@ describe("New HtmlReporter", function() {
691
691
  expect(seedBar).toBeNull();
692
692
  });
693
693
 
694
- it("should include the random query param in the jasmine-skipped link when randomizing", function(){
694
+ it("should include non-spec query params in the jasmine-skipped link when present", function(){
695
695
  var env = new jasmineUnderTest.Env(),
696
696
  container = document.createElement("div"),
697
697
  reporter = new jasmineUnderTest.HtmlReporter({
698
698
  env: env,
699
699
  getContainer: function() { return container; },
700
700
  createElement: function() { return document.createElement.apply(document, arguments); },
701
- createTextNode: function() { return document.createTextNode.apply(document, arguments); }
701
+ createTextNode: function() { return document.createTextNode.apply(document, arguments); },
702
+ addToExistingQueryString: function(key, value) { return "?foo=bar&" + key + "=" + value; }
702
703
  });
703
704
 
704
705
  reporter.initialize();
@@ -706,25 +707,7 @@ describe("New HtmlReporter", function() {
706
707
  reporter.jasmineDone({ order: { random: true } });
707
708
 
708
709
  var skippedLink = container.querySelector(".jasmine-skipped a");
709
- expect(skippedLink.getAttribute('href')).toEqual('?random=true');
710
- });
711
-
712
- it("should not include the random query param in the jasmine-skipped link when not randomizing", function(){
713
- var env = new jasmineUnderTest.Env(),
714
- container = document.createElement("div"),
715
- reporter = new jasmineUnderTest.HtmlReporter({
716
- env: env,
717
- getContainer: function() { return container; },
718
- createElement: function() { return document.createElement.apply(document, arguments); },
719
- createTextNode: function() { return document.createTextNode.apply(document, arguments); }
720
- });
721
-
722
- reporter.initialize();
723
- reporter.jasmineStarted({ totalSpecsDefined: 1 });
724
- reporter.jasmineDone();
725
-
726
- var skippedLink = container.querySelector(".jasmine-skipped a");
727
- expect(skippedLink.getAttribute('href')).toEqual('?');
710
+ expect(skippedLink.getAttribute('href')).toEqual('?foo=bar&spec=');
728
711
  });
729
712
  });
730
713
 
@@ -4,6 +4,6 @@
4
4
  #
5
5
  module Jasmine
6
6
  module Core
7
- VERSION = "2.6.4"
7
+ VERSION = "2.7.0"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.4
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Van Hove
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-16 00:00:00.000000000 Z
11
+ date: 2017-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -117,6 +117,7 @@ files:
117
117
  - "./lib/jasmine-core/spec/core/SuiteSpec.js"
118
118
  - "./lib/jasmine-core/spec/core/TimerSpec.js"
119
119
  - "./lib/jasmine-core/spec/core/TreeProcessorSpec.js"
120
+ - "./lib/jasmine-core/spec/core/UserContextSpec.js"
120
121
  - "./lib/jasmine-core/spec/core/UtilSpec.js"
121
122
  - "./lib/jasmine-core/spec/core/asymmetric_equality/AnySpec.js"
122
123
  - "./lib/jasmine-core/spec/core/asymmetric_equality/AnythingSpec.js"
@@ -155,6 +156,8 @@ files:
155
156
  - "./lib/jasmine-core/spec/core/matchers/toThrowErrorSpec.js"
156
157
  - "./lib/jasmine-core/spec/core/matchers/toThrowSpec.js"
157
158
  - "./lib/jasmine-core/spec/helpers/BrowserFlags.js"
159
+ - "./lib/jasmine-core/spec/helpers/asyncAwait.js"
160
+ - "./lib/jasmine-core/spec/helpers/checkForMap.js"
158
161
  - "./lib/jasmine-core/spec/helpers/checkForSet.js"
159
162
  - "./lib/jasmine-core/spec/helpers/defineJasmineUnderTest.js"
160
163
  - "./lib/jasmine-core/spec/helpers/nodeDefineJasmineUnderTest.js"