Title: [89870] trunk/LayoutTests
Revision
89870
Author
[email protected]
Date
2011-06-27 15:31:36 -0700 (Mon, 27 Jun 2011)

Log Message

2011-06-27  Adam Klein  <[email protected]>

        Reviewed by Adam Barth.

        Fix filesystem-no-callback-null-ptr-crash.html test to reference proper file api methods
        https://bugs.webkit.org/show_bug.cgi?id=63486

        * fast/filesystem/filesystem-no-callback-null-ptr-crash.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (89869 => 89870)


--- trunk/LayoutTests/ChangeLog	2011-06-27 22:18:15 UTC (rev 89869)
+++ trunk/LayoutTests/ChangeLog	2011-06-27 22:31:36 UTC (rev 89870)
@@ -1,3 +1,12 @@
+2011-06-27  Adam Klein  <[email protected]>
+
+        Reviewed by Adam Barth.
+
+        Fix filesystem-no-callback-null-ptr-crash.html test to reference proper file api methods
+        https://bugs.webkit.org/show_bug.cgi?id=63486
+
+        * fast/filesystem/filesystem-no-callback-null-ptr-crash.html:
+
 2011-06-27  Jay Civelli  <[email protected]>
 
         Reviewed by Darin Fisher.

Modified: trunk/LayoutTests/fast/filesystem/filesystem-no-callback-null-ptr-crash.html (89869 => 89870)


--- trunk/LayoutTests/fast/filesystem/filesystem-no-callback-null-ptr-crash.html	2011-06-27 22:18:15 UTC (rev 89869)
+++ trunk/LayoutTests/fast/filesystem/filesystem-no-callback-null-ptr-crash.html	2011-06-27 22:31:36 UTC (rev 89870)
@@ -6,8 +6,10 @@
 <script>
   if (window.layoutTestController)
       layoutTestController.dumpAsText();
-  // These two calls so not cause a NULL pointer crash:
-  try { window.requestFileSystem(10); } catch (e) {}
-  try { window.resolveLocalFileSystemURI(); } catch (e) {}
-  document.getElementById('log').innerHTML = "PASS";
+  if (window.webkitRequestFileSystem) {
+      // These two calls should not cause a NULL pointer crash:
+      webkitRequestFileSystem(TEMPORARY, 100);
+      webkitResolveLocalFileSystemURL('');
+      document.getElementById('log').innerHTML = "PASS";
+  }
 </script>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to