ffddea71a55a38e192c7537e2b37be35e1e35cf1
[WebKit-https.git] / LayoutTests / inspector / profiler / memory-instrumentation-cached-images.html
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="memory-instrumentation-test.js"></script>
5 <script>
6
7 function displayAndRunTest()
8 {
9     if (window.testRunner)
10         testRunner.display();
11     runTest();
12 }
13
14 function test()
15 {
16     var jpegDecodedSizeExpected = 20000000;
17     InspectorTest.validateMemoryBlockSize(["ProcessPrivateMemory", "Image"], jpegDecodedSizeExpected);
18 }
19
20 </script>
21 </head>
22
23 <body>
24 <p>
25 This test checks that CachedImages size reported by the memory agent includes images decoded size.
26 <a href="https://bugs.webkit.org/show_bug.cgi?id=93366">Bug 93366</a>
27 </p>
28 <img src="resources/image.jpeg" width="100" height="60" onload="displayAndRunTest()"/>
29 </body>
30 </html>