Index: third_party/WebKit/LayoutTests/platform/oilpan/fast/dom/StyleSheet/detached-parent-rule-without-wrapper-expected.txt |
diff --git a/third_party/WebKit/LayoutTests/platform/oilpan/fast/dom/StyleSheet/detached-parent-rule-without-wrapper-expected.txt b/third_party/WebKit/LayoutTests/platform/oilpan/fast/dom/StyleSheet/detached-parent-rule-without-wrapper-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6131bb1850a67ba7ba960f0a26e2acd4baf956a7 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/platform/oilpan/fast/dom/StyleSheet/detached-parent-rule-without-wrapper-expected.txt |
@@ -0,0 +1,13 @@ |
+Test that CSS stylesheets lacking wrappers are pruned from detached CSSOM subtrees. This is surprising behavior, but it's a very rare situation, and the behavior actually matches what both WebKit and Gecko do for DOM nodes in detached subtrees. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+PASS getMatchedCSSRules(document.getElementById("test")).length is 1 |
+Removing <style>... |
+FAIL rule.parentRule should be null. Was [object CSSMediaRule]. |
+PASS getMatchedCSSRules(document.getElementById("test")) is null |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |