Skip to content

Commit

Permalink
Update the svg.html test. This is now a test for case insenstivity also
Browse files Browse the repository at this point in the history
  • Loading branch information
sidkshatriya committed Jul 5, 2016
1 parent 165695c commit 0a35986
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ Note: An explicit commit is noted as these files can change.
There is a slight custom modification made by us to this file (see our repo's 36c67aace ) and that is to close the `<amp-audio>` tags in the file that are not closed. This causes problems for PHP dom.
* `test-data/full-html/several_errors.html` from https://github.com/ampproject/amphtml/blob/96335e0540532264b3b38d498070f17473692b21/validator/testdata/feature_tests/several_errors.html
* `test-data/full-html/spec_example.html` https://github.com/ampproject/amphtml/blob/96335e0540532264b3b38d498070f17473692b21/validator/testdata/feature_tests/spec_example.html
* `test-data/full-html/svg.html` https://github.com/ampproject/amphtml/blob/96335e0540532264b3b38d498070f17473692b21/validator/testdata/feature_tests/svg.html
Small modification: css id `svg_3` was repeated and has been made unique by changing line 68 to `another_svg_circle`.
* `test-data/full-html/svg.html` https://github.com/ampproject/amphtml/raw/8ab5d550fae93b9a1bb8a06d9fb82ffc08569b44/validator/testdata/feature_tests/svg.html
* `test-data/full-html/track_tag.html` https://github.com/ampproject/amphtml/blob/27ee29ffc3d809fcc8143044d22df9d176ad8169/validator/testdata/feature_tests/track_tag.html
* `test-data/full-html/urls.html` from https://github.com/ampproject/amphtml/blob/eddc6fd2224559cb7ccc6a1e27484e52de3d9301/validator/testdata/feature_tests/urls.html
* `test-data/full-html/validator-amp-accordion.html` https://github.com/ampproject/amphtml/blob/27ee29ffc3d809fcc8143044d22df9d176ad8169/extensions/amp-accordion/0.1/test/validator-amp-accordion.html
Expand Down
17 changes: 16 additions & 1 deletion tests/test-data/full-html/svg.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,22 @@ <h2>SVG</h2>
stuff in HTML5, we allow it just like browsers would do in practice.
-->
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="640" height="480">
<circle id="another_svg_circle" r="89.560036" cy="275" cx="315" stroke-linecap="null" stroke-linejoin="null" stroke-width="0" stroke="#000000" fill="#007f00"/>
<circle id="svg_3_2" r="89.560036" cy="275" cx="315" stroke-linecap="null" stroke-linejoin="null" stroke-width="0" stroke="#000000" fill="#007f00"/>
</svg>

<!-- Allow version to be 1.1 and stop tags for lineargradient and
radialgradient -->
<svg version = "1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<lineargradient x1="30%" y1="-55%" x2="58%" y2="94%">
<stop offset="0%" stop-color="#fff" offset="0%" />
<stop offset="0%" stop-color="#aaa" offset="67.36%" />
<stop offset="0%" stop-color="#333" offset="100%" />
</lineargradient>
<radialgradient cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
<stop offset="0%" stop-color="#fff" offset="0%" />
<stop offset="0%" stop-color="#aaa" offset="67.36%" />
<stop offset="0%" stop-color="#333" offset="100%" />
</radialgradient>
</svg>
</body>
</html>

0 comments on commit 0a35986

Please sign in to comment.