Update text-content-type-with-binary-extension.html to use a .sitx file of random...
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Mar 2009 04:04:36 +0000 (04:04 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 Mar 2009 04:04:36 +0000 (04:04 +0000)
than a .m4a to ensure that WebKit doesn't handle the resource as a full-frame media element if the network
layer sniffs it as audio/mp4 rather than application/octet-stream.

Rubber-stamped by Dan Bernstein.

* http/tests/loading/resources/.htaccess:
* http/tests/loading/resources/binaryData.m4a: Removed.
* http/tests/loading/resources/binaryData.sitx: Added.
* http/tests/loading/text-content-type-with-binary-extension.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42067 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/http/tests/loading/resources/.htaccess
LayoutTests/http/tests/loading/resources/binaryData.m4a [deleted file]
LayoutTests/http/tests/loading/resources/binaryData.sitx [new file with mode: 0644]
LayoutTests/http/tests/loading/text-content-type-with-binary-extension.html

index 12cc658..8444255 100644 (file)
@@ -1,3 +1,16 @@
+2009-03-27  Mark Rowe  <mrowe@apple.com>
+
+        Rubber-stamped by Dan Bernstein.
+
+        Update text-content-type-with-binary-extension.html to use a .sitx file of random data rather
+        than a .m4a to ensure that WebKit doesn't handle the resource as a full-frame media element if the network
+        layer sniffs it as audio/mp4 rather than application/octet-stream.
+
+        * http/tests/loading/resources/.htaccess:
+        * http/tests/loading/resources/binaryData.m4a: Removed.
+        * http/tests/loading/resources/binaryData.sitx: Added.
+        * http/tests/loading/text-content-type-with-binary-extension.html:
+
 2009-03-27  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Gavin Barraclough.
diff --git a/LayoutTests/http/tests/loading/resources/binaryData.m4a b/LayoutTests/http/tests/loading/resources/binaryData.m4a
deleted file mode 100644 (file)
index df1d0ad..0000000
Binary files a/LayoutTests/http/tests/loading/resources/binaryData.m4a and /dev/null differ
diff --git a/LayoutTests/http/tests/loading/resources/binaryData.sitx b/LayoutTests/http/tests/loading/resources/binaryData.sitx
new file mode 100644 (file)
index 0000000..9fd2b53
Binary files /dev/null and b/LayoutTests/http/tests/loading/resources/binaryData.sitx differ
index 2ee3abf..e740b6b 100644 (file)
@@ -16,7 +16,7 @@
                 document.getElementById("result").innerText = "Binary data not loaded as text. Maybe PASS.";
                 layoutTestController.notifyDone();
             } else
-                document.getElementById("result").innerText = "If Safari downloaded binaryData.m4a, then it passed the test.";
+                document.getElementById("result").innerText = "If Safari downloaded binaryData.sitx, then it passed the test.";
         }
 
         function bodyLoaded()
@@ -42,5 +42,5 @@
     <p id="result">
         Test running...
     </p>
-    <iframe id="iframe" src="resources/binaryData.m4a" onload="iframeLoaded()"></iframe>
+    <iframe id="iframe" src="resources/binaryData.sitx" onload="iframeLoaded()"></iframe>
 </body>