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-0.16.2 test/unit/zena/parser/zafu_asset.yml
zena-0.16.1 test/unit/zena/parser/zafu_asset.yml
zena-0.16.0 test/unit/zena/parser/zafu_asset.yml
zena-0.15.2 test/unit/zena/parser/zafu_asset.yml
zena-0.15.1 test/unit/zena/parser/zafu_asset.yml
zena-0.15.0 test/unit/zena/parser/zafu_asset.yml