Skip to content

Commit

Permalink
Add a test case for Popup annotations
Browse files Browse the repository at this point in the history
This test case also includes Link and Text annotations.
  • Loading branch information
timvandermeij committed Dec 22, 2015
1 parent 991e501 commit 97fc47d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
16 changes: 5 additions & 11 deletions test/annotation_layer_test.css
Expand Up @@ -39,19 +39,13 @@
box-shadow: 0px 2px 10px #ff0;
}

.annotationLayer .annotText > img {
position: absolute;
.annotationLayer .popupAnnotation {
margin-left: 1%;
}

.annotationLayer .annotTextContentWrapper {
.annotationLayer .popupAnnotation .content {
position: absolute;
width: 20em;
}

.annotationLayer .annotTextContent {
z-index: 200;
float: left;
max-width: 20em;
background-color: #FFFF99;
box-shadow: 0px 2px 5px #333;
border-radius: 2px;
Expand All @@ -60,14 +54,14 @@
font: message-box;
}

.annotationLayer .annotTextContent > h1 {
.annotationLayer .popupAnnotation .content h1 {
font-size: 1em;
border-bottom: 1px solid #000000;
margin: 0;
padding: 0 0 0.2em 0;
}

.annotationLayer .annotTextContent > p {
.annotationLayer .popupAnnotation .content p {
margin: 0;
padding: 0.2em 0 0 0;
}
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Expand Up @@ -198,3 +198,4 @@
!issue6108.pdf
!issue6113.pdf
!openoffice.pdf
!annotation-link-text-popup.pdf
Binary file added test/pdfs/annotation-link-text-popup.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Expand Up @@ -2616,6 +2616,13 @@
"rounds": 1,
"type": "load"
},
{ "id": "annotation-link-text-popup",
"file": "pdfs/annotation-link-text-popup.pdf",
"md5": "4bbf56e81d47232de5f305124ab0ba27",
"rounds": 1,
"type": "eq",
"annotations": true
},
{ "id": "issue6108",
"file": "pdfs/issue6108.pdf",
"md5": "8961cb55149495989a80bf0487e0f076",
Expand Down

0 comments on commit 97fc47d

Please sign in to comment.