Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: LayoutTests/fast/dom/insertedIntoDocument-no-crash.html

Issue 11612012: Merge 137736 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/insertedIntoDocument-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/insertedIntoDocument-no-crash.html
===================================================================
--- LayoutTests/fast/dom/insertedIntoDocument-no-crash.html (revision 137971)
+++ LayoutTests/fast/dom/insertedIntoDocument-no-crash.html (working copy)
@@ -10,8 +10,12 @@
}
function f2() {
- document.getElementsByTagName("kbd")[0].innerHTML = 'foo';
- document.getElementsByTagName("kbd")[0].insertBefore(document.createElement('foo'),document.createElement('foo'));
+ try {
+ document.getElementsByTagName("kbd")[0].innerHTML = 'foo';
+ document.getElementsByTagName("kbd")[0].insertBefore(document.createElement('foo'),document.createElement('foo'));
+ } catch (e) {
+ // We are not interested in exceptions.
+ }
}
</script>
<s>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/insertedIntoDocument-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698