CachedResource leak in validation code
[WebKit-https.git] / LayoutTests / http / tests / cache / recursive-validation.html
1 <script src="/js-test-resources/js-test-pre.js"></script>
2 <script>
3 jsTestIsAsync = true;
4
5 description("Test that recursively loading resource that requires validation does not assert or crash");
6
7 function load(completion) {
8     var xhr = new XMLHttpRequest();
9     xhr.open('GET', "resources/no-cache-with-validation.php");
10     xhr.onload = completion;
11     xhr.send();
12 }
13
14 window.onload = load(function () {
15     load(function () {
16         load(function () {
17             load(function () {
18                  finishJSTest();
19             });
20         });
21     });
22 });
23 </script>
24 <script src="/js-test-resources/js-test-post.js"></script>