Sha256: a63ad14a79da1e8517502f8c746a26058d41de5e397af6beff5d41ebdb9034ac

Contents?: true

Size: 1.04 KB

Versions: 42

Compression:

Stored size: 1.04 KB

Contents

# -*- coding: utf-8 -*-
require 'helper'
require 'write_xlsx/workbook'
require 'write_xlsx/package/vml'

class TestWriteShapetype < Test::Unit::TestCase
  def test_write_shapetype
    vml = Writexlsx::Package::Vml.new
    vml.__send__('write_comment_shapetype')
    result = vml.instance_variable_get(:@writer).string
    expected = '<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe"><v:stroke joinstyle="miter"/><v:path gradientshapeok="t" o:connecttype="rect"/></v:shapetype>'
    assert_equal(expected, result)
  end

  def test_write_shapetype2
    vml = Writexlsx::Package::Vml.new
    vml.__send__('write_button_shapetype')
    result = vml.instance_variable_get(:@writer).string
    expected = '<v:shapetype id="_x0000_t201" coordsize="21600,21600" o:spt="201" path="m,l,21600r21600,l21600,xe"><v:stroke joinstyle="miter"/><v:path shadowok="f" o:extrusionok="f" strokeok="f" fillok="f" o:connecttype="rect"/><o:lock v:ext="edit" shapetype="t"/></v:shapetype>'
    assert_equal(expected, result)
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
write_xlsx-0.86.0 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.11 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.10 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.9 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.8 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.7 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.6 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.5 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.4 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.3 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.2 test/package/vml/test_write_shapetype.rb
write_xlsx-0.85.1 test/package/vml/test_write_shapetype.rb
write_xlsx-0.83.0 test/package/vml/test_write_shapetype.rb
write_xlsx-0.81.1 test/package/vml/test_write_shapetype.rb
write_xlsx-0.81.0 test/package/vml/test_write_shapetype.rb
write_xlsx-0.80.0 test/package/vml/test_write_shapetype.rb
write_xlsx-0.79.0 test/package/vml/test_write_shapetype.rb
write_xlsx-0.78.0 test/package/vml/test_write_shapetype.rb
write_xlsx-0.77.2 test/package/vml/test_write_shapetype.rb
write_xlsx-0.77.1 test/package/vml/test_write_shapetype.rb