Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shower-presentation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Шардт Максим Александрович
shower-presentation
Commits
c3df8331
Commit
c3df8331
authored
Dec 01, 2013
by
Vadim Makeev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial set of functional tests using DalekJS
parent
0d1bd6f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
keys.js
tests/keys.js
+51
-0
No files found.
tests/keys.js
0 → 100644
View file @
c3df8331
module
.
exports
=
{
'Body class is switching from `list` to `full` on F5'
:
function
(
test
)
{
test
.
open
(
'themes/ribbon/index.html'
)
.
sendKeys
(
'body'
,
'
\
uE035'
)
// F5
.
assert
.
attr
(
'body'
,
'class'
,
'full'
)
.
done
();
},
'Body class is switching from `full` to `list` on F5'
:
function
(
test
)
{
test
.
open
(
'themes/ribbon/index.html?full'
)
.
sendKeys
(
'body'
,
'
\
uE035'
)
// F5
.
assert
.
attr
(
'body'
,
'class'
,
'list'
)
.
done
();
},
// 'Body class is switching from `list` to `full` on Cmd Alt P': function (test) {
// test
// .open('themes/ribbon/index.html')
// .sendKeys('body', '\uE03D\uE00A\u0050') // Cmd Alt P
// .assert.attr('body', 'class', 'full')
// .done();
// },
'Body class is switching from `full` to `list` on Esc'
:
function
(
test
)
{
test
.
open
(
'themes/ribbon/index.html?full'
)
.
sendKeys
(
'body'
,
'
\
uE00C'
)
// Esc
.
assert
.
attr
(
'body'
,
'class'
,
'list'
)
.
done
();
},
'End key works as expected'
:
function
(
test
)
{
test
.
open
(
'themes/ribbon/index.html'
)
.
sendKeys
(
'body'
,
'
\
uE010'
)
// End
.
assert
.
attr
(
'.slide:last-of-type'
,
'class'
,
'slide active'
)
.
done
();
},
'Home key works as expected'
:
function
(
test
)
{
test
.
open
(
'themes/ribbon/index.html#20'
)
.
sendKeys
(
'body'
,
'
\
uE011'
)
// Home
.
assert
.
attr
(
'.slide:first-of-type'
,
'class'
,
'slide active'
)
.
done
();
},
'Enter is not opening slide if there’s no current'
:
function
(
test
)
{
test
.
open
(
'themes/ribbon/index.html'
)
.
sendKeys
(
'body'
,
'
\
uE007'
)
// Enter
.
assert
.
attr
(
'body'
,
'class'
,
'list'
)
.
done
();
}
};
\ No newline at end of file
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