Sha256: 63f7435bca4796ce3959d7123085baba0c7273d5ede51b8af7ffec6ba3ecab1d

Contents?: true

Size: 909 Bytes

Versions: 1

Compression:

Stored size: 909 Bytes

Contents

require 'spec_helper'

describe Riiif::OpenseadragonHelper do

  it "should draw the viewer" do
    out = openseadragon_viewer('world')
    out.should == '<div id="openseadragon1"></div><script>
//<![CDATA[
        var viewer = OpenSeadragon({
            id: "openseadragon1",
            prefixUrl: "/assets/openseadragon/",
            tileSources:   [{
            "image_host":     "/image-service",
            "identifier":   "world",   
            "width":        800,   
            "height":       400,   
            "scale_factors": [1, 2, 3, 4, 5],   
            "tile_width":   1024,   
            "tile_height":  1024,   
            "formats":      [ "jpg", "png" ],   
            "qualities":    ["native", "bitonal", "grey", "color"],   
            "profile":      "http://library.stanford.edu/iiif/image-api/compliance.html#level3"
          }]
        });

//]]>
</script>'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
riiif-0.0.4 spec/helpers/openseadragon_helper_spec.rb