| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "IDBRequest.h" | 28 #include "IDBRequest.h" |
| 29 | 29 |
| 30 #include "DOMStringList.h" | 30 #include "DOMStringList.h" |
| 31 #include "Document.h" | 31 #include "Document.h" |
| 32 #include "Frame.h" | 32 #include "Frame.h" |
| 33 #include "FrameTestHelpers.h" | 33 #include "FrameTestHelpers.h" |
| 34 #include "IDBCursorBackendInterface.h" | 34 #include "IDBCursorBackendInterface.h" |
| 35 #include "IDBDatabaseBackendImpl.h" | 35 #include "IDBDatabaseBackendImpl.h" |
| 36 #include "IDBTransactionCoordinator.h" | 36 #include "IDBTransactionCoordinator.h" |
| 37 #include "ScriptController.h" |
| 37 #include "WebFrame.h" | 38 #include "WebFrame.h" |
| 38 #include "WebFrameImpl.h" | 39 #include "WebFrameImpl.h" |
| 39 #include "WebView.h" | 40 #include "WebView.h" |
| 40 | 41 |
| 41 #include <gtest/gtest.h> | 42 #include <gtest/gtest.h> |
| 42 | 43 |
| 43 using namespace WebCore; | 44 using namespace WebCore; |
| 44 using namespace WebKit; | 45 using namespace WebKit; |
| 45 | 46 |
| 46 namespace { | 47 namespace { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 // Simulate the IDBTransaction having received onAbort from back end and abo
rting the request: | 112 // Simulate the IDBTransaction having received onAbort from back end and abo
rting the request: |
| 112 request->abort(); | 113 request->abort(); |
| 113 | 114 |
| 114 // Now simulate the back end having fired an abort error at the request to c
lear up any intermediaries. | 115 // Now simulate the back end having fired an abort error at the request to c
lear up any intermediaries. |
| 115 // Ensure an assertion is not raised. | 116 // Ensure an assertion is not raised. |
| 116 request->onError(IDBDatabaseError::create(IDBDatabaseException::AbortError,
"Description goes here.")); | 117 request->onError(IDBDatabaseError::create(IDBDatabaseException::AbortError,
"Description goes here.")); |
| 117 } | 118 } |
| 118 | 119 |
| 119 } // namespace | 120 } // namespace |
| OLD | NEW |