Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Unified Diff: chrome_frame/test/data/xmlhttprequest_conditional_header_test.html

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/test/data/window_print.html ('k') | chrome_frame/test/data/xmlhttprequest_header_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/data/xmlhttprequest_conditional_header_test.html
diff --git a/chrome_frame/test/data/xmlhttprequest_conditional_header_test.html b/chrome_frame/test/data/xmlhttprequest_conditional_header_test.html
deleted file mode 100644
index f05fca72b5f1a6b3cee4c167e85f6109052d6149..0000000000000000000000000000000000000000
--- a/chrome_frame/test/data/xmlhttprequest_conditional_header_test.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<html>
- <head>
- <meta http-equiv="x-ua-compatible" content="chrome=1" />
- <title>ChromeFrame conditional header test</title>
- <script type="text/javascript"
- src="chrome_frame_tester_helpers.js"></script>
-
- <script type="text/javascript">
- function ValidateUserAgent() {
- if (isRunningInMSIE()) {
- onFailure("FullTab_XMLHttpRequestConditionalHeaderTest", 1,
- "Failed");
- }
-
- SendXHRRequest("if_match", "*");
- SendXHRRequest("if_modified_since", "*");
- SendXHRRequest("if-none-match", "*");
- SendXHRRequest("if-range", "*");
- SendXHRRequest("if-unmodified-since", "*");
- onSuccess("FullTab_XMLHttpRequestConditionalHeaderTest", 1);
- }
-
- function SendXHRRequest(conditional_header, value) {
- var test_name = "FullTab_XMLHttpRequestConditionalHeaderTest";
- var xhr = getXHRObject();
- if (!xhr) {
- onFailure(test_name, 1, "Failed to get XHR object");
- }
-
- var request_uri = AppendArgumentsToBaseUrl("echoheader?",
- conditional_header);
- xhr.open("GET", request_uri, false);
- xhr.setRequestHeader(conditional_header, value);
-
- try {
- xhr.send(null);
- var pos = xhr.responseText.indexOf(value);
- if (pos >= 0) {
- appendStatus("Received header: " + xhr.responseText);
- } else {
- onFailure(
- test_name, 1,
- "Failed to find header " + conditional_header + " in response.");
- }
- } catch (e) {
- appendStatus("XHR send failed. Error: " + e.description);
- onFailure(test_name, 1, "Failed to send XHR request");
- }
- }
- </script>
- </head>
-
- <body onload="setTimeout(ValidateUserAgent, 100);">
- ChromeFrame full tab mode XMLHttpRequest conditional header test.
- Verifies that conditional headers set by XML HTTP requests make it past
- the host network stack.
- </body>
-</html>
« no previous file with comments | « chrome_frame/test/data/window_print.html ('k') | chrome_frame/test/data/xmlhttprequest_header_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698