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
8d809dba
Commit
8d809dba
authored
Jul 03, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove commented-out code
parent
32a902ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
cms/static/coffee/spec/views/textbook_spec.coffee
+0
-3
No files found.
cms/static/coffee/spec/views/textbook_spec.coffee
View file @
8d809dba
...
@@ -349,7 +349,6 @@ describe "CMS.Views.UploadDialog", ->
...
@@ -349,7 +349,6 @@ describe "CMS.Views.UploadDialog", ->
it
"should render without a file selected"
,
->
it
"should render without a file selected"
,
->
@
view
.
render
()
@
view
.
render
()
expect
(
@
view
.
$el
).
toContain
(
"input[type=file]"
)
expect
(
@
view
.
$el
).
toContain
(
"input[type=file]"
)
# expect(@view.$(".action-upload")).toBeDisabled()
expect
(
@
view
.
$
(
".action-upload"
)).
toHaveClass
(
"disabled"
)
expect
(
@
view
.
$
(
".action-upload"
)).
toHaveClass
(
"disabled"
)
it
"should render with a PDF selected"
,
->
it
"should render with a PDF selected"
,
->
...
@@ -359,7 +358,6 @@ describe "CMS.Views.UploadDialog", ->
...
@@ -359,7 +358,6 @@ describe "CMS.Views.UploadDialog", ->
@
view
.
render
()
@
view
.
render
()
expect
(
@
view
.
$el
).
toContain
(
"input[type=file]"
)
expect
(
@
view
.
$el
).
toContain
(
"input[type=file]"
)
expect
(
@
view
.
$el
).
not
.
toContain
(
"#upload_error"
)
expect
(
@
view
.
$el
).
not
.
toContain
(
"#upload_error"
)
# expect(@view.$(".action-upload")).not.toBeDisabled()
expect
(
@
view
.
$
(
".action-upload"
)).
not
.
toHaveClass
(
"disabled"
)
expect
(
@
view
.
$
(
".action-upload"
)).
not
.
toHaveClass
(
"disabled"
)
it
"should render an error with an invalid file type selected"
,
->
it
"should render an error with an invalid file type selected"
,
->
...
@@ -369,7 +367,6 @@ describe "CMS.Views.UploadDialog", ->
...
@@ -369,7 +367,6 @@ describe "CMS.Views.UploadDialog", ->
@
view
.
render
()
@
view
.
render
()
expect
(
@
view
.
$el
).
toContain
(
"input[type=file]"
)
expect
(
@
view
.
$el
).
toContain
(
"input[type=file]"
)
expect
(
@
view
.
$el
).
toContain
(
"#upload_error"
)
expect
(
@
view
.
$el
).
toContain
(
"#upload_error"
)
# expect(@view.$(".action-upload")).toBeDisabled()
expect
(
@
view
.
$
(
".action-upload"
)).
toHaveClass
(
"disabled"
)
expect
(
@
view
.
$
(
".action-upload"
)).
toHaveClass
(
"disabled"
)
...
...
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