Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
2030edc2
Commit
2030edc2
authored
Aug 12, 2019
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove workarounds for PhantomJS in tests
parent
8e1e34a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
document-test.js
src/annotator/plugin/test/document-test.js
+0
-5
util.js
src/sidebar/directive/test/util.js
+1
-4
No files found.
src/annotator/plugin/test/document-test.js
View file @
2030edc2
...
...
@@ -30,11 +30,6 @@ describe('DocumentMeta', function() {
tempDocument
.
appendChild
(
tempDocumentHead
);
fakeNormalizeURI
=
sinon
.
stub
().
callsFake
((
url
,
base
)
=>
{
if
(
url
===
'http://a:b:c'
)
{
// A modern browser would reject this URL, but PhantomJS's URL parser is
// more lenient.
throw
new
Error
(
'Invalid URL'
);
}
return
normalizeURI
(
url
,
base
);
});
...
...
src/sidebar/directive/test/util.js
View file @
2030edc2
...
...
@@ -175,10 +175,7 @@ function createDirective(
/** Helper to dispatch a native event to a DOM element. */
function
sendEvent
(
element
,
eventType
)
{
// createEvent() used instead of Event constructor
// for PhantomJS compatibility
const
event
=
document
.
createEvent
(
'Event'
);
event
.
initEvent
(
eventType
,
true
/* bubbles */
,
true
/* cancelable */
);
const
event
=
new
Event
(
eventType
,
{
bubbles
:
true
,
cancelable
:
true
});
element
.
dispatchEvent
(
event
);
}
...
...
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