summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-01-05 16:28:02 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-01-05 16:28:02 +0000
commit5c46a45979de49776983c6e7c0263e4156bb1069 (patch)
treeb03d127e034f352766610dd81930852d0feb244f /spec
parentc15e36b2d728eebd1b3879de229939dde45328ab (diff)
parentafb857d1e72d31b9e93cb7b2443fcf40851f85e0 (diff)
downloadgitlab-ce-5c46a45979de49776983c6e7c0263e4156bb1069.tar.gz
Merge branch 'remove-custom-event-polyfill' into 'master'
Removes CustomEvent polyfill and tests See merge request !8400
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es643
1 files changed, 0 insertions, 43 deletions
diff --git a/spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es6 b/spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es6
deleted file mode 100644
index 3645dd70c55..00000000000
--- a/spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es6
+++ /dev/null
@@ -1,43 +0,0 @@
-//= require lib/utils/custom_event_polyfill
-
-describe('Custom Event Polyfill', () => {
- it('should be defined', () => {
- expect(window.CustomEvent).toBeDefined();
- });
-
- it('should create a `CustomEvent` instance', () => {
- const e = new window.CustomEvent('foo');
-
- expect(e.type).toEqual('foo');
- expect(e.bubbles).toBe(false);
- expect(e.cancelable).toBe(false);
- expect(e.detail).toBeFalsy();
- });
-
- it('should create a `CustomEvent` instance with a `details` object', () => {
- const e = new window.CustomEvent('bar', { detail: { foo: 'bar' } });
-
- expect(e.type).toEqual('bar');
- expect(e.bubbles).toBe(false);
- expect(e.cancelable).toBe(false);
- expect(e.detail.foo).toEqual('bar');
- });
-
- it('should create a `CustomEvent` instance with a `bubbles` boolean', () => {
- const e = new window.CustomEvent('bar', { bubbles: true });
-
- expect(e.type).toEqual('bar');
- expect(e.bubbles).toBe(true);
- expect(e.cancelable).toBe(false);
- expect(e.detail).toBeFalsy();
- });
-
- it('should create a `CustomEvent` instance with a `cancelable` boolean', () => {
- const e = new window.CustomEvent('bar', { cancelable: true });
-
- expect(e.type).toEqual('bar');
- expect(e.bubbles).toBe(false);
- expect(e.cancelable).toBe(true);
- expect(e.detail).toBeFalsy();
- });
-});