summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/debugger/devtools_sanity_unittest.cc6
-rw-r--r--chrome/test/data/devtools/image.html7
-rw-r--r--chrome/test/data/devtools/image.pngbin0 -> 257796 bytes
3 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/debugger/devtools_sanity_unittest.cc b/chrome/browser/debugger/devtools_sanity_unittest.cc
index 8329273..e441a73 100644
--- a/chrome/browser/debugger/devtools_sanity_unittest.cc
+++ b/chrome/browser/debugger/devtools_sanity_unittest.cc
@@ -49,6 +49,7 @@ const wchar_t kConsoleTestPage[] = L"files/devtools/console_test_page.html";
const wchar_t kDebuggerTestPage[] = L"files/devtools/debugger_test_page.html";
const wchar_t kEvalTestPage[] = L"files/devtools/eval_test_page.html";
const wchar_t kJsPage[] = L"files/devtools/js_page.html";
+const wchar_t kResourceContentLengthTestPage[] = L"files/devtools/image.html";
const wchar_t kResourceTestPage[] = L"files/devtools/resource_test_page.html";
const wchar_t kSimplePage[] = L"files/devtools/simple_page.html";
const wchar_t kSyntaxErrorTestPage[] =
@@ -270,6 +271,11 @@ IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEnableResourcesTab) {
RunTest("testEnableResourcesTab", kSimplePage);
}
+// Tests resources have correct sizes.
+IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestResourceContentLength) {
+ RunTest("testResourceContentLength", kResourceContentLengthTestPage);
+}
+
// Tests resource headers.
IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestResourceHeaders) {
RunTest("testResourceHeaders", kResourceTestPage);
diff --git a/chrome/test/data/devtools/image.html b/chrome/test/data/devtools/image.html
new file mode 100644
index 0000000..fffdaa1
--- /dev/null
+++ b/chrome/test/data/devtools/image.html
@@ -0,0 +1,7 @@
+<html>
+<head>
+</head>
+<body>
+<img src="image.png" alt="A screenshot" />
+</body>
+</html> \ No newline at end of file
diff --git a/chrome/test/data/devtools/image.png b/chrome/test/data/devtools/image.png
new file mode 100644
index 0000000..97410f3
--- /dev/null
+++ b/chrome/test/data/devtools/image.png
Binary files differ