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
37179c53
Commit
37179c53
authored
Jan 15, 2020
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert src/annotator/test to ES modules
parent
77867094
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
+11
-11
adder-test.js
src/annotator/test/adder-test.js
+1
-1
annotation-counts-test.js
src/annotator/test/annotation-counts-test.js
+1
-1
annotation-sync-test.js
src/annotator/test/annotation-sync-test.js
+2
-2
features-test.js
src/annotator/test/features-test.js
+3
-3
range-util-test.js
src/annotator/test/range-util-test.js
+1
-1
selections-test.js
src/annotator/test/selections-test.js
+2
-2
sidebar-trigger-test.js
src/annotator/test/sidebar-trigger-test.js
+1
-1
No files found.
src/annotator/test/adder-test.js
View file @
37179c53
const
adder
=
require
(
'../adder'
)
;
import
*
as
adder
from
'../adder'
;
function
rect
(
left
,
top
,
width
,
height
)
{
return
{
left
:
left
,
top
:
top
,
width
:
width
,
height
:
height
};
...
...
src/annotator/test/annotation-counts-test.js
View file @
37179c53
const
annotationCounts
=
require
(
'../annotation-counts'
)
;
import
annotationCounts
from
'../annotation-counts'
;
describe
(
'annotationCounts'
,
function
()
{
let
countEl1
;
...
...
src/annotator/test/annotation-sync-test.js
View file @
37179c53
const
EventEmitter
=
require
(
'tiny-emitter'
)
;
import
EventEmitter
from
'tiny-emitter'
;
const
AnnotationSync
=
require
(
'../annotation-sync'
)
;
import
AnnotationSync
from
'../annotation-sync'
;
describe
(
'AnnotationSync'
,
function
()
{
let
createAnnotationSync
;
...
...
src/annotator/test/features-test.js
View file @
37179c53
const
events
=
require
(
'../../shared/bridge-events'
)
;
const
features
=
require
(
'../features'
)
;
const
{
$imports
}
=
require
(
'../features'
)
;
import
events
from
'../../shared/bridge-events'
;
import
features
from
'../features'
;
import
{
$imports
}
from
'../features'
;
describe
(
'features - annotation layer'
,
function
()
{
let
featureFlagsUpdateHandler
;
...
...
src/annotator/test/range-util-test.js
View file @
37179c53
const
rangeUtil
=
require
(
'../range-util'
)
;
import
*
as
rangeUtil
from
'../range-util'
;
function
createRange
(
node
,
start
,
end
)
{
const
range
=
node
.
ownerDocument
.
createRange
();
...
...
src/annotator/test/selections-test.js
View file @
37179c53
const
observable
=
require
(
'../util/observable'
)
;
const
selections
=
require
(
'../selections'
)
;
import
selections
from
'../selections'
;
import
*
as
observable
from
'../util/observable'
;
function
FakeDocument
()
{
const
listeners
=
{};
...
...
src/annotator/test/sidebar-trigger-test.js
View file @
37179c53
const
sidebarTrigger
=
require
(
'../sidebar-trigger'
)
;
import
sidebarTrigger
from
'../sidebar-trigger'
;
describe
(
'sidebarTrigger'
,
function
()
{
let
triggerEl1
;
...
...
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