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
42f9b06b
Commit
42f9b06b
authored
Oct 28, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1515 from edx/will/fix-js-transcript-tests
Add explicit wait to JS transcript tests
parents
d8444266
3c9d86f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
cms/static/js_spec/transcripts/editor_spec.js
+17
-5
No files found.
cms/static/js_spec/transcripts/editor_spec.js
View file @
42f9b06b
...
...
@@ -168,6 +168,8 @@ function ($, Backbone, _, Utils, Editor, MetadataView, MetadataModel, MetadataCo
return
(
displayNameValue
!==
""
&&
displayNameValue
!=
"video_id"
);
},
"Defaults never loaded"
,
1000
);
runs
(
function
()
{
var
displayNameValue
=
collection
[
0
].
getValue
();
var
videoUrlValue
=
collection
[
1
].
getValue
();
...
...
@@ -178,6 +180,7 @@ function ($, Backbone, _, Utils, Editor, MetadataView, MetadataModel, MetadataCo
'default.webm'
]);
});
});
it
(
'If metadataCollection is not defined'
,
function
()
{
transcripts
.
syncBasicTab
(
null
);
...
...
@@ -220,11 +223,19 @@ function ($, Backbone, _, Utils, Editor, MetadataView, MetadataModel, MetadataCo
it
(
'Correct data'
,
function
()
{
transcripts
.
syncAdvancedTab
(
metadataCollection
);
var
collection
=
metadataCollection
.
models
,
displayNameValue
=
collection
[
0
].
getValue
(),
subValue
=
collection
[
1
].
getValue
(),
html5SourcesValue
=
collection
[
2
].
getValue
(),
youtubeValue
=
collection
[
3
].
getValue
();
var
collection
=
metadataCollection
.
models
;
waitsFor
(
function
()
{
var
displayNameValue
=
collection
[
0
].
getValue
();
return
(
displayNameValue
!==
""
&&
displayNameValue
!=
"video_id"
);
},
"Defaults never loaded"
,
1000
);
runs
(
function
()
{
var
displayNameValue
=
collection
[
0
].
getValue
();
var
subValue
=
collection
[
1
].
getValue
();
var
html5SourcesValue
=
collection
[
2
].
getValue
();
var
youtubeValue
=
collection
[
3
].
getValue
();
expect
(
displayNameValue
).
toBe
(
'display value'
);
expect
(
subValue
).
toBe
(
'default'
);
...
...
@@ -234,6 +245,7 @@ function ($, Backbone, _, Utils, Editor, MetadataView, MetadataModel, MetadataCo
]);
expect
(
youtubeValue
).
toBe
(
'12345678901'
);
});
});
it
(
'metadataCollection is not defined'
,
function
()
{
transcripts
.
syncAdvancedTab
(
null
);
...
...
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