Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
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
Cédric Le Ninivin
renderjs
Commits
8781c770
Commit
8781c770
authored
Apr 08, 2016
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test: fix absolute URL calculation
parent
a421fa3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
Gruntfile.js
Gruntfile.js
+1
-0
test/renderjs_test.js
test/renderjs_test.js
+3
-5
No files found.
Gruntfile.js
View file @
8781c770
...
...
@@ -87,6 +87,7 @@ module.exports = function (grunt) {
'
RSVP
'
,
'
DOMParser
'
,
'
URI
'
,
'
URL
'
,
'
__RenderJSIframeGadget
'
,
'
__RenderJSEmbeddedGadget
'
]
...
...
test/renderjs_test.js
View file @
8781c770
/*jslint nomen: true*/
(
function
(
document
,
renderJS
,
QUnit
,
sinon
,
URI
)
{
(
function
(
document
,
renderJS
,
QUnit
,
sinon
,
URI
,
URL
)
{
"
use strict
"
;
var
test
=
QUnit
.
test
,
stop
=
QUnit
.
stop
,
...
...
@@ -3704,9 +3704,7 @@
document
.
querySelector
(
'
.acquisitionError
'
),
klass_div
=
iframe
.
contentWindow
.
document
.
querySelector
(
'
.klass
'
);
equal
(
url_div
.
innerHTML
,
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
hostname
+
(
window
.
location
.
port
?
'
:
'
+
window
.
location
.
port
:
''
)
+
"
/test/not_declared_gadget.html
"
);
new
URL
(
'
not_declared_gadget.html
'
,
window
.
location
).
href
);
equal
(
acquisition_div
.
innerHTML
,
"
AcquisitionError: No gadget provides willFail
"
);
equal
(
klass_div
.
innerHTML
,
...
...
@@ -3720,5 +3718,5 @@
});
});
}(
document
,
renderJS
,
QUnit
,
sinon
,
URI
));
}(
document
,
renderJS
,
QUnit
,
sinon
,
URI
,
URL
));
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