@@ -0,0 +1,1527 @@
+package com.thoughtworks.selenium;%0D%0A%0D%0Aimport org.openqa.selenium.server.HtmlIdentifier;%0D%0A%0D%0Aimport junit.framework.TestCase;%0D%0A%0D%0Apublic class HtmlIdentifierTest extends TestCase %7B%0D%0A    public void setUp() %7B%0D%0A        HtmlIdentifier.setLogging(true);%0D%0A    %7D%0D%0A    %0D%0A    public void testSomeScenarios() %7B%0D%0A        oneTest(%22/selenium-server/tests/proxy_injection_meta_equiv_test.js%22, %0D%0A                %22application/x-javascript%22,%0D%0A                %22%3C!DOCTYPE html PUBLIC %5C%5C%5C%22-//W3C//DTD XHTML 1.0 Transitional//EN %5C%5C%5C%22 %5C%5C%5C%22http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd%5C%5C%5C%22%3E%3Chtml xmlns=%5C%5C%5C%22http://www.w3.org/1999/xhtml%5C%5C%5C%22%3E%5C%5Cn%3Chead%3E%5C%5Cn  %3Cmeta http-equiv=%5C%5C%5C%22Content-Type%5C%5C%5C%22 content=%5C%5C%5C%22text/html; charset=ISO-8859-%5C%22; var s2=%5C%221%5C%5C%5C%22 /%3E%5C%5Cn  %3Ctitle%3EInsert%3C/title%3E%5C%5Cn%3C/head%3E%5C%5Cn%3Cbody%3En%3Cp%3E%3Cstrong%3EDWR tests passed%3C/strong%3E%3C/p%3E%5C%5Cn%5C%5Cn%3C/body%3E%5C%5Cn%3C/html%3E%5C%5Cn%5C%22;%22,%0D%0A                false);%0D%0A        oneTest(%22http://www.google.com/webhp%22, %0D%0A                %22text/html; charset=UTF-8%22, %0D%0A                %22%3Chtml%3E...%3C/html%3E%22, %0D%0A                true);%0D%0A    %7D%0D%0A%0D%0A    private void oneTest(String path, String contentType, String content, boolean expectedToInject) %7B%0D%0A        String testCaseDescription = %22HtmlIdentifier.shouldBeInjected(%5C%22%22 + path + %22%5C%22, %5C%22%22 + %0D%0A                contentType + %22%5C%22, %5C%22%22 + content + %22%5C%22): should %22 + (expectedToInject ? %22%22: %22not %22) + %22inject%22;%0D%0A        assertEquals(testCaseDescription, %0D%0A                HtmlIdentifier.shouldBeInjected(path, contentType, content),%0D%0A                expectedToInject);%0D%0A    %7D%0D%0A%7D%0D%0A

test HtmlIdentifier