Sha256: b2560b5a7ebf67b25db7b1b24d31103c1555b3f3398c9ebe3e936da8426cf209

Contents?: true

Size: 1.22 KB

Versions: 26

Compression:

Stored size: 1.22 KB

Contents

do_nothing:
  src: "this is just <h2 class='any'>a title</h2>"
  res: "this is just <h2 class='any'>a title</h2>"

change_stylesheet:
  src: "<link href='local/test.css' rel='stylesheet' type='text/css'/>"
  res: "<link href='/test_stylesheet/local/test.css' rel='stylesheet' type='text/css'/>"

ignore_absolute_path:
  src: "<link rel='stylesheet' type='text/css' href='/absolute/test.css'/>"
  res: "<link href='/absolute/test.css' rel='stylesheet' type='text/css'/>"

bad_link:
  src: "<link rel='stylesheet'/>"
  res: "<link rel='stylesheet'/>"

change_img_src:
  src: "this <img src='images/logo.png'/> image"
  res: "this <img src='/test_img/images/logo.png'/> image"

do_not_change_img_src:
  src: "this <img src='http://example.com/logo.png'/> image"
  res: "this <img src='http://example.com/logo.png'/> image"

change_script_src:
  src: |
    <script src='functions.js' type='text/javascript'>
      var = '<r:hello/>'
    </script>
  res: |
    <script src='/test_script/functions.js' type='text/javascript'>
      var = 'hello world!'
    </script>

change_style_url:
  src: |
    <style>
    #super { background:url('images/logo.png');}
    </style>
  res: |
    <style>
    #super { background:url('/test_/images/logo.png');}
    </style>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
zena-1.2.1 test/unit/zena/parser/zafu_asset.yml
zena-1.2.0 test/unit/zena/parser/zafu_asset.yml
zena-1.1.3 test/unit/zena/parser/zafu_asset.yml
zena-1.1.2 test/unit/zena/parser/zafu_asset.yml
zena-1.1.1 test/unit/zena/parser/zafu_asset.yml
zena-1.1.0 test/unit/zena/parser/zafu_asset.yml
zena-1.0.0 test/unit/zena/parser/zafu_asset.yml
zena-1.0.0.rc3 test/unit/zena/parser/zafu_asset.yml
zena-1.0.0.rc2 test/unit/zena/parser/zafu_asset.yml
zena-1.0.0.rc1 test/unit/zena/parser/zafu_asset.yml
zena-0.16.9 test/unit/zena/parser/zafu_asset.yml
zena-1.0.0.beta3 test/unit/zena/parser/zafu_asset.yml
zena-0.16.8 test/unit/zena/parser/zafu_asset.yml
zena-1.0.0.beta2 test/unit/zena/parser/zafu_asset.yml
zena-1.0.0.beta1 test/unit/zena/parser/zafu_asset.yml
zena-0.16.7 test/unit/zena/parser/zafu_asset.yml
zena-0.16.6 test/unit/zena/parser/zafu_asset.yml
zena-0.16.5 test/unit/zena/parser/zafu_asset.yml
zena-0.16.4 test/unit/zena/parser/zafu_asset.yml
zena-0.16.3 test/unit/zena/parser/zafu_asset.yml