Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
dda6fbd4
Commit
dda6fbd4
authored
Oct 18, 2013
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo.
parent
73011383
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
common/lib/xmodule/xmodule/js/spec/video/resizer_spec.js
+8
-9
No files found.
common/lib/xmodule/xmodule/js/spec/video/resizer_spec.js
View file @
dda6fbd4
...
...
@@ -5,17 +5,16 @@ require(
function
(
Resizer
)
{
describe
(
'Resizer'
,
function
()
{
var
config
,
container
,
element
;
beforeEach
(
function
()
{
var
html
=
[
var
html
=
[
'<div class="rszr-wrapper" style="width:200px; height: 200px;">'
,
'<div class="rszr-el" style="width:100px; height: 150px;">'
,
'Content'
,
'</div>'
,
'</div>'
].
join
(
''
);
].
join
(
''
),
config
,
container
,
element
;
beforeEach
(
function
()
{
setFixtures
(
html
);
container
=
$
(
'.rszr-wrapper'
);
...
...
@@ -58,10 +57,10 @@ function (Resizer) {
realHeight
=
element
.
height
(),
expectedWidth
=
50
;
// con
at
inerRatio >= elementRatio
// con
ta
inerRatio >= elementRatio
expect
(
realHeight
).
toBe
(
expectedHeight
);
// con
at
inerRatio < elementRatio
// con
ta
inerRatio < elementRatio
container
.
width
(
expectedWidth
);
resizer
.
align
();
realWidth
=
element
.
width
();
...
...
@@ -76,10 +75,10 @@ function (Resizer) {
realHeight
=
element
.
height
(),
expectedWidth
=
50
;
// con
at
inerRatio >= elementRatio
// con
ta
inerRatio >= elementRatio
expect
(
realHeight
).
toBe
(
expectedHeight
);
// con
at
inerRatio < elementRatio
// con
ta
inerRatio < elementRatio
container
.
width
(
expectedWidth
);
resizer
.
setMode
(
'width'
);
realWidth
=
element
.
width
();
...
...
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