summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/filesystem/filesystem-no-callback-null-ptr-crash.html
blob: 78ba6b9feab79fabb758514996abb927bb5e78bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!--
  http://code.google.com/p/chromium/issues/detail?id=63204
  https://bugs.webkit.org/show_bug.cgi?id=49539
-->
<div id="log">FAIL</div>
<script>
  if (window.testRunner)
      testRunner.dumpAsText();
  if (window.webkitRequestFileSystem) {
      // These two calls should throw an exception but should NOT cause a NULL pointer crash:
      webkitResolveLocalFileSystemURL('', function() {});
      try {
          webkitRequestFileSystem(TEMPORARY, 100);
      }
      catch(e) {
          document.getElementById('log').innerHTML = "PASS";
      }
  }
</script>