Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
renderjs
Commits
fbb8c3fe
Commit
fbb8c3fe
authored
Dec 12, 2016
by
Sebastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small adjustments
parent
45b12db1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
test/inject_renderjs.js
test/inject_renderjs.js
+0
-4
test/renderjs_test.js
test/renderjs_test.js
+8
-2
No files found.
test/inject_renderjs.js
View file @
fbb8c3fe
/*jslint nomen: true*/
function
test_iframe_append
()
{
var
tele
=
document
.
createTextNode
(
"
. doing the loading .
"
);
document
.
body
.
appendChild
(
tele
);
}
// can't use RSVP here because its not loaded (neccessarily)
function
test_inject_lib
(
libsrc
,
resolve
)
{
...
...
test/renderjs_test.js
View file @
fbb8c3fe
...
...
@@ -5445,7 +5445,10 @@
});
})
.
then
(
function
()
{
iframe
.
contentWindow
.
test_iframe_append
();
ok
(
!
iframe
.
contentWindow
.
hasOwnProperty
(
"
renderJS
"
),
"
RJS NOT available before inject
"
);
return
new
RSVP
.
Promise
(
function
(
resolve
,
reject
)
{
iframe
.
contentWindow
.
test_inject_lib
(
"
../node_modules/rsvp/dist/rsvp-2.0.4.js
"
,
...
...
@@ -5463,7 +5466,10 @@
})
.
then
(
function
()
{
var
rjsLoaded
=
iframe
.
contentWindow
.
rJS
!==
undefined
;
ok
(
rjsLoaded
,
"
injected RJS available in iframe
"
);
ok
(
iframe
.
contentWindow
.
hasOwnProperty
(
"
renderJS
"
),
"
RJS available after inject
"
);
})
.
then
(
function
()
{
iframe
.
contentWindow
.
rJS
.
manualBootstrap
();
...
...
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