[HtmlUnit] SVN: [13771] trunk/htmlunit/src

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] SVN: [13771] trunk/htmlunit/src

rbri
Revision: 13771
          http://sourceforge.net/p/htmlunit/code/13771
Author:   rbri
Date:     2017-03-15 21:11:56 +0000 (Wed, 15 Mar 2017)
Log Message:
-----------
line endings

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/AudioScheduledSourceNode.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/media/MediaSourceTest.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/svg/SvgJavaScriptTest.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/AudioScheduledSourceNode.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/AudioScheduledSourceNode.java 2017-03-15 21:02:35 UTC (rev 13770)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/AudioScheduledSourceNode.java 2017-03-15 21:11:56 UTC (rev 13771)
@@ -1,38 +1,38 @@
-/*
- * Copyright (c) 2002-2017 Gargoyle Software Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.gargoylesoftware.htmlunit.javascript.host;
-
-import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.CHROME;
-
-import com.gargoylesoftware.htmlunit.javascript.SimpleScriptable;
-import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
-import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor;
-import com.gargoylesoftware.htmlunit.javascript.configuration.WebBrowser;
-
-/**
- * A JavaScript object for {@code AudioScheduledSourceNode}.
- *
- * @author Ronald Brill
- */
-@JsxClass(browsers = @WebBrowser(CHROME))
-public class AudioScheduledSourceNode extends SimpleScriptable {
-
-    /**
-     * Creates a new instance.
-     */
-    @JsxConstructor
-    public AudioScheduledSourceNode() {
-    }
-}
+/*
+ * Copyright (c) 2002-2017 Gargoyle Software Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.gargoylesoftware.htmlunit.javascript.host;
+
+import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.CHROME;
+
+import com.gargoylesoftware.htmlunit.javascript.SimpleScriptable;
+import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
+import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor;
+import com.gargoylesoftware.htmlunit.javascript.configuration.WebBrowser;
+
+/**
+ * A JavaScript object for {@code AudioScheduledSourceNode}.
+ *
+ * @author Ronald Brill
+ */
+@JsxClass(browsers = @WebBrowser(CHROME))
+public class AudioScheduledSourceNode extends SimpleScriptable {
+
+    /**
+     * Creates a new instance.
+     */
+    @JsxConstructor
+    public AudioScheduledSourceNode() {
+    }
+}

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/media/MediaSourceTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/media/MediaSourceTest.java 2017-03-15 21:02:35 UTC (rev 13770)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/media/MediaSourceTest.java 2017-03-15 21:11:56 UTC (rev 13771)
@@ -1,93 +1,93 @@
-/*
- * Copyright (c) 2002-2017 Gargoyle Software Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.gargoylesoftware.htmlunit.javascript.host.media;
-
-import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.CHROME;
-import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.FF;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import com.gargoylesoftware.htmlunit.BrowserRunner;
-import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
-import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented;
-import com.gargoylesoftware.htmlunit.WebDriverTestCase;
-
-/**
- * Tests for {@link MediaSource}.
- *
- * @author Ronald Brill
- */
-@RunWith(BrowserRunner.class)
-public class MediaSourceTest extends WebDriverTestCase {
-
-    /**
-     * @throws Exception if the test fails
-     */
-    @Test
-    @Alerts(DEFAULT = "true",
-            IE = "false")
-    public void inWindow() throws Exception {
-        final String html
-            = "<html>\n"
-            + "<head>\n"
-            + "  <script>\n"
-            + "    function test() {\n"
-            + "      alert('MediaSource' in window);\n"
-            + "    }\n"
-            + "  </script>\n"
-            + "</head>\n"
-            + "<body onload='test()'>\n"
-            + "</body>\n"
-            + "</html>";
-
-        loadPageWithAlerts2(html);
-    }
-
-    /**
-     * @throws Exception if the test fails
-     */
-    @Test
-    @Alerts(DEFAULT = { "true", "true", "false" },
-            CHROME = { "true", "false", "false" },
-            IE = "MediaSource not available")
-    @NotYetImplemented({FF, CHROME})
-    public void isTypeSypported() throws Exception {
-        final String html
-            = "<html>\n"
-            + "<head>\n"
-            + "  <script>\n"
-            + "    function test() {\n"
-            + "      if (!('MediaSource' in window)) {\n"
-            + "        alert('MediaSource not available');\n"
-            + "        return;\n"
-            + "      }\n"
-
-            + "      supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"');\n"
-            + "      supported('video/mp4');\n"
-            + "      supported('');\n"
-            + "    }\n"
-            + "    function supported(mime) {\n"
-            + "      alert(MediaSource.isTypeSupported(mime));\n"
-            + "    }\n"
-            + "  </script>\n"
-            + "</head>\n"
-            + "<body onload='test()'>\n"
-            + "</body>\n"
-            + "</html>";
-
-        loadPageWithAlerts2(html);
-    }
-}
+/*
+ * Copyright (c) 2002-2017 Gargoyle Software Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.gargoylesoftware.htmlunit.javascript.host.media;
+
+import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.CHROME;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.FF;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.gargoylesoftware.htmlunit.BrowserRunner;
+import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
+import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented;
+import com.gargoylesoftware.htmlunit.WebDriverTestCase;
+
+/**
+ * Tests for {@link MediaSource}.
+ *
+ * @author Ronald Brill
+ */
+@RunWith(BrowserRunner.class)
+public class MediaSourceTest extends WebDriverTestCase {
+
+    /**
+     * @throws Exception if the test fails
+     */
+    @Test
+    @Alerts(DEFAULT = "true",
+            IE = "false")
+    public void inWindow() throws Exception {
+        final String html
+            = "<html>\n"
+            + "<head>\n"
+            + "  <script>\n"
+            + "    function test() {\n"
+            + "      alert('MediaSource' in window);\n"
+            + "    }\n"
+            + "  </script>\n"
+            + "</head>\n"
+            + "<body onload='test()'>\n"
+            + "</body>\n"
+            + "</html>";
+
+        loadPageWithAlerts2(html);
+    }
+
+    /**
+     * @throws Exception if the test fails
+     */
+    @Test
+    @Alerts(DEFAULT = { "true", "true", "false" },
+            CHROME = { "true", "false", "false" },
+            IE = "MediaSource not available")
+    @NotYetImplemented({FF, CHROME})
+    public void isTypeSypported() throws Exception {
+        final String html
+            = "<html>\n"
+            + "<head>\n"
+            + "  <script>\n"
+            + "    function test() {\n"
+            + "      if (!('MediaSource' in window)) {\n"
+            + "        alert('MediaSource not available');\n"
+            + "        return;\n"
+            + "      }\n"
+
+            + "      supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"');\n"
+            + "      supported('video/mp4');\n"
+            + "      supported('');\n"
+            + "    }\n"
+            + "    function supported(mime) {\n"
+            + "      alert(MediaSource.isTypeSupported(mime));\n"
+            + "    }\n"
+            + "  </script>\n"
+            + "</head>\n"
+            + "<body onload='test()'>\n"
+            + "</body>\n"
+            + "</html>";
+
+        loadPageWithAlerts2(html);
+    }
+}

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/svg/SvgJavaScriptTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/svg/SvgJavaScriptTest.java 2017-03-15 21:02:35 UTC (rev 13770)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/svg/SvgJavaScriptTest.java 2017-03-15 21:11:56 UTC (rev 13771)
@@ -1,59 +1,60 @@
-/*
- * Copyright (c) 2002-2017 Gargoyle Software Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.gargoylesoftware.htmlunit.svg;
-
-import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.CHROME;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-import com.gargoylesoftware.htmlunit.BrowserRunner;
-import com.gargoylesoftware.htmlunit.BrowserRunner.BuggyWebDriver;
-import com.gargoylesoftware.htmlunit.TextUtil;
-import com.gargoylesoftware.htmlunit.WebDriverTestCase;
-
-/**
- * Tests for running JavaScripts in SVG elements..
- *
- * @author Ahmed Ashour
- */
-@RunWith(BrowserRunner.class)
-public class SvgJavaScriptTest extends WebDriverTestCase {
-
-    /**
-     * @throws Exception if the test fails
-     */
-    @Test
-    @BuggyWebDriver(CHROME)
-    public void onclick() throws Exception {
-        final String html = ""
-            + "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
-            + "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" baseProfile=\"full\" width=\"100px\""
-            + " height=\"100px\" viewBox=\"0 0 100 100\">\n"
-            + "  <rect id=\"rect\" width=\"50\" height=\"50\" fill=\"blue\" "
-            + "onclick=\"document.getElementById('rect').setAttribute('fill', 'green')\" />\n"
-            + "</svg>";
-
-        final WebDriver driver = loadPage2(html, URL_FIRST, "image/svg+xml", TextUtil.DEFAULT_CHARSET);
-        final WebElement rect = driver.findElement(By.id("rect"));
-
-        assertEquals("blue", rect.getAttribute("fill"));
-        rect.click();
-        assertEquals("green", rect.getAttribute("fill"));
-    }
-}
+/*
+ * Copyright (c) 2002-2017 Gargoyle Software Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.gargoylesoftware.htmlunit.svg;
+
+import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.CHROME;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.openqa.selenium.By;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.WebElement;
+
+import com.gargoylesoftware.htmlunit.BrowserRunner;
+import com.gargoylesoftware.htmlunit.BrowserRunner.BuggyWebDriver;
+import com.gargoylesoftware.htmlunit.TextUtil;
+import com.gargoylesoftware.htmlunit.WebDriverTestCase;
+
+/**
+ * Tests for running JavaScripts in SVG elements..
+ *
+ * @author Ahmed Ashour
+ */
+@RunWith(BrowserRunner.class)
+public class SvgJavaScriptTest extends WebDriverTestCase {
+
+    /**
+     * @throws Exception if the test fails
+     */
+    @Test
+    @BuggyWebDriver(CHROME)
+    public void onclick() throws Exception {
+        final String html = ""
+            + "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
+            + "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" baseProfile=\"full\" width=\"100px\""
+            + " height=\"100px\" viewBox=\"0 0 100 100\">\n"
+            + "  <rect id=\"rect\" width=\"50\" height=\"50\" fill=\"blue\" "
+            + "onclick=\"document.getElementById('rect').setAttribute('fill', 'green')\" />\n"
+            + "</svg>";
+
+        final WebDriver driver = loadPage2(html, URL_FIRST, "image/svg+xml", TextUtil.DEFAULT_CHARSET);
+        final WebElement rect = driver.findElement(By.id("rect"));
+
+        assertEquals("blue", rect.getAttribute("fill"));
+        rect.click();
+        assertEquals("green", rect.getAttribute("fill"));
+    }
+}
+


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop