Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4b4fd743
Commit
4b4fd743
authored
Nov 23, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace static fixture for zen_mode_spec (!7686)
parent
448c19aa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
12 deletions
+9
-12
changelogs/unreleased/zen-mode-fixture.yml
changelogs/unreleased/zen-mode-fixture.yml
+4
-0
spec/javascripts/fixtures/zen_mode.html.haml
spec/javascripts/fixtures/zen_mode.html.haml
+0
-8
spec/javascripts/zen_mode_spec.js
spec/javascripts/zen_mode_spec.js
+5
-4
No files found.
changelogs/unreleased/zen-mode-fixture.yml
0 → 100644
View file @
4b4fd743
---
title
:
Replace static fixture for zen_mode_spec
merge_request
:
7686
author
:
winniehell
spec/javascripts/fixtures/zen_mode.html.haml
deleted
100644 → 0
View file @
448c19aa
.md-area
.zen-backdrop
%textarea
#note_note
.js-gfm-input.markdown-area
%a
.js-zen-enter
(
tabindex=
"-1"
href=
"#"
)
%i
.fa.fa-expand
Edit in fullscreen
%a
.js-zen-leave
(
tabindex=
"-1"
href=
"#"
)
%i
.fa.fa-compress
spec/javascripts/zen_mode_spec.js
View file @
4b4fd743
...
@@ -6,9 +6,10 @@
...
@@ -6,9 +6,10 @@
var
enterZen
,
escapeKeydown
,
exitZen
;
var
enterZen
,
escapeKeydown
,
exitZen
;
describe
(
'
ZenMode
'
,
function
()
{
describe
(
'
ZenMode
'
,
function
()
{
fixture
.
preload
(
'
zen_mode.html
'
);
var
fixtureName
=
'
issues/open-issue.html.raw
'
;
fixture
.
preload
(
fixtureName
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
zen_mode.html
'
);
fixture
.
load
(
fixtureName
);
spyOn
(
Dropzone
,
'
forElement
'
).
and
.
callFake
(
function
()
{
spyOn
(
Dropzone
,
'
forElement
'
).
and
.
callFake
(
function
()
{
return
{
return
{
enable
:
function
()
{
enable
:
function
()
{
...
@@ -60,11 +61,11 @@
...
@@ -60,11 +61,11 @@
});
});
enterZen
=
function
()
{
enterZen
=
function
()
{
return
$
(
'
a
.js-zen-enter
'
).
click
();
return
$
(
'
.js-zen-enter
'
).
click
();
};
};
exitZen
=
function
()
{
// Ohmmmmmmm
exitZen
=
function
()
{
// Ohmmmmmmm
return
$
(
'
a
.js-zen-leave
'
).
click
();
return
$
(
'
.js-zen-leave
'
).
click
();
};
};
escapeKeydown
=
function
()
{
escapeKeydown
=
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment