1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

More cleanup regarding annotation border styles

This commit is contained in:
Tim van der Meij 2015-07-17 21:51:24 +02:00
parent 4b6e2724ae
commit 465611a2ff
3 changed files with 5 additions and 8 deletions

View file

@ -1,6 +1,6 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* globals expect, it, describe, Dict, Annotation, AnnotationBorderStyle,
/* globals expect, it, describe, Dict, Name, Annotation, AnnotationBorderStyle,
AnnotationBorderStyleType */
'use strict';
@ -79,9 +79,7 @@ describe('Annotation layer', function() {
it('should set and get a valid style', function() {
var borderStyle = new AnnotationBorderStyle();
var dict = new Dict();
dict.name = 'D';
borderStyle.setStyle(dict);
borderStyle.setStyle(Name.get('D'));
expect(borderStyle.style).toEqual(AnnotationBorderStyleType.DASHED);
});