Introduce IDL files for runtime-enabled UndoManager and UndoItem JavaScript API
[WebKit-https.git] / LayoutTests / editing / undo-manager / undo-manager-keeps-wrapper-alive.html
1 <!DOCTYPE html> <!-- webkit-test-runner [ enableUndoManagerAPI=true ] -->
2 <html>
3     <head>
4         <script src="../../resources/js-test.js"></script>
5     </head>
6     <script>
7         function runTest()
8         {
9             description("Verifies that the wrapper for Document's UndoManager remains consistent across GC passes. This test must be run using WebKitTestRunner.");
10             document.undoManager.foo = "bar";
11             if (window.GCController)
12                 GCController.collect();
13             shouldBeEqualToString("document.undoManager.foo", "bar");
14         }
15     </script>
16     <body onload=runTest()></body>
17 </html>