<?xml version="1.0" encoding="UTF-8"?>
<test-data
    xmlns="http://pmd.sourceforge.net/rule-tests"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://pmd.sourceforge.net/rule-tests http://pmd.sourceforge.net/rule-tests_1_0_0.xsd">

    <test-code>
        <description>A violation.</description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
<html>
    <head>
        <script>Some script</script>
    </head>
</html>
        ]]></code>
    </test-code>

    <test-code>
        <description>A violation.</description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
<html>
    <head>
        <script src="script location">Some script</script>
    </head>
</html>
        ]]></code>
    </test-code>

    <test-code>
        <description>Ok, no 'src' with empty body.</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<html>
    <head>
        <script></script>
    </head>
</html>
        ]]></code>
    </test-code>

    <test-code>
        <description>Ok, only 'src' with empty whitespace body.</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<html>
    <head>
        <script src="script location"> </script>
    </head>
</html>
        ]]></code>
    </test-code>

    <test-code>
        <description>Ok, only 'src' without body.</description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
<html>
    <head>
        <script src="script location"/>
    </head>
</html>
        ]]></code>
    </test-code>
</test-data>
