Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador Video
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
623429b2
Commit
623429b2
authored
Mar 22, 2019
by
Mathias Maaß
Browse files
Options
Downloads
Patches
Plain Diff
remove dispensible plugin test
parent
946a2827
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
__tests__/integration/mirador/plugins.html
+0
-56
0 additions, 56 deletions
__tests__/integration/mirador/plugins.html
__tests__/integration/mirador/plugins.test.js
+0
-13
0 additions, 13 deletions
__tests__/integration/mirador/plugins.test.js
with
0 additions
and
69 deletions
__tests__/integration/mirador/plugins.html
deleted
100644 → 0
+
0
−
56
View file @
946a2827
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, shrink-to-fit=no"
>
<meta
name=
"theme-color"
content=
"#000000"
>
<title>
Mirador
</title>
</head>
<body>
<div
id=
"mirador"
style=
"position: absolute; top: 0; bottom: 0; left: 0; right: 0;"
></div>
<script
src=
"../../../node_modules/react/umd/react.development.js"
></script>
<!-- Request from CDN if unavailable locally -->
<script
type=
"text/javascript"
>
if
(
!
window
.
React
)
{
var
script
=
document
.
createElement
(
'
script
'
);
script
.
src
=
"
https://unpkg.com/react@16/umd/react.development.js
"
;
script
.
crossorigin
=
true
;
document
.
head
.
appendChild
(
script
)
}
</script>
<script
src=
"../../../node_modules/react-dom/umd/react-dom.development.js"
></script>
<!-- Request from CDN if unavailable locally -->
<script
type=
"text/javascript"
>
if
(
!
window
.
ReactDOM
)
{
var
script
=
document
.
createElement
(
'
script
'
);
script
.
src
=
"
https://unpkg.com/react-dom@16/umd/react-dom.development.js
"
;
script
.
crossorigin
=
true
;
document
.
head
.
appendChild
(
script
)
}
</script>
<script>
document
.
write
(
"
<script type='text/javascript' src='../../../dist/mirador.min.js?v=
"
+
Date
.
now
()
+
"
'><
\
/script>
"
);
</script>
<script
type=
"text/javascript"
>
class
MiradorShareButton
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
handleClick
=
this
.
handleClick
.
bind
(
this
);
}
handleClick
()
{
alert
(
'
Share this stuff
'
)
}
render
()
{
return
React
.
createElement
(
'
button
'
,
{
className
:
'
share
'
,
onClick
:
this
.
handleClick
},
'
Share
'
);
}
}
const
miradorShareButtonPlugin
=
{
target
:
'
WindowTopBarButtons
'
,
mode
:
"
replace
"
,
component
:
MiradorShareButton
,
}
var
miradorInstance
=
Mirador
.
viewer
(
{
id
:
'
mirador
'
,
windows
:
[{
loadedManifest
:
'
https://purl.stanford.edu/sn904cj3429/iiif/manifest
'
}]
},
[
miradorShareButtonPlugin
],
);
</script>
</body>
</html>
This diff is collapsed.
Click to expand it.
__tests__/integration/mirador/plugins.test.js
deleted
100644 → 0
+
0
−
13
View file @
946a2827
describe
(
'
Mirador plugin use
'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
page
.
goto
(
'
http://127.0.0.1:4488/__tests__/integration/mirador/plugins.html
'
);
});
it
(
'
displays "Share Button" plugin by replace
'
,
async
()
=>
{
await
expect
(
page
).
toMatchElement
(
'
button
'
,
{
text
:
'
Share
'
});
page
.
on
(
'
dialog
'
,
async
(
dialog
)
=>
{
expect
(
dialog
.
message
()).
toBe
(
'
Share this stuff
'
);
await
dialog
.
dismiss
();
});
await
expect
(
page
).
toClick
(
'
button.share
'
);
});
});
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