Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
ae34c3fe
Commit
ae34c3fe
authored
11 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Mark xblock initialization status using css class (in part to make testing easier)
parent
35fbc15e
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/static/coffee/src/xblock/core.coffee
+1
-0
1 addition, 0 deletions
common/static/coffee/src/xblock/core.coffee
common/test/acceptance/pages/xblock/acid.py
+1
-4
1 addition, 4 deletions
common/test/acceptance/pages/xblock/acid.py
with
2 additions
and
4 deletions
common/static/coffee/src/xblock/core.coffee
+
1
−
0
View file @
ae34c3fe
...
...
@@ -22,6 +22,7 @@
$element
.
trigger
(
"xblock-initialized"
)
$element
.
data
(
"initialized"
,
true
)
$element
.
addClass
(
"xblock-initialized"
)
block
initializeBlocks
:
(
element
)
->
...
...
This diff is collapsed.
Click to expand it.
common/test/acceptance/pages/xblock/acid.py
+
1
−
4
View file @
ae34c3fe
...
...
@@ -25,10 +25,7 @@ class AcidView(PageObject):
self
.
context_selector
=
context_selector
def
is_browser_on_page
(
self
):
return
(
self
.
is_css_present
(
'
{} .acid-block
'
.
format
(
self
.
context_selector
))
and
self
.
browser
.
evaluate_script
(
"
$({!r}).data(
'
initialized
'
)
"
.
format
(
self
.
context_selector
))
)
return
self
.
is_css_present
(
'
{}.xblock-initialized .acid-block
'
.
format
(
self
.
context_selector
))
def
test_passed
(
self
,
test_selector
):
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment