From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- layout/reftests/xul-document-load/readme.txt | 27 +++++++++++++++++++++ .../xul-document-load/reference-green-window.xhtml | 7 ++++++ layout/reftests/xul-document-load/reftest.list | 9 +++++++ layout/reftests/xul-document-load/test003.css | 6 +++++ layout/reftests/xul-document-load/test003.xhtml | 10 ++++++++ layout/reftests/xul-document-load/test004.css | 6 +++++ layout/reftests/xul-document-load/test004.xhtml | 14 +++++++++++ layout/reftests/xul-document-load/test005.css | 6 +++++ layout/reftests/xul-document-load/test005.js | 4 ++++ layout/reftests/xul-document-load/test005.xhtml | 10 ++++++++ layout/reftests/xul-document-load/test006-007.js | 11 +++++++++ layout/reftests/xul-document-load/test006.css | 6 +++++ layout/reftests/xul-document-load/test006.xhtml | 12 ++++++++++ layout/reftests/xul-document-load/test008.xhtml | 9 +++++++ layout/reftests/xul-document-load/test010.css | 6 +++++ layout/reftests/xul-document-load/test010.xhtml | 28 ++++++++++++++++++++++ layout/reftests/xul-document-load/test012-1.css | 6 +++++ layout/reftests/xul-document-load/test012-2.css | 6 +++++ layout/reftests/xul-document-load/test012.xhtml | 8 +++++++ .../xul-document-load/test013-1-import.css | 6 +++++ layout/reftests/xul-document-load/test013-1.css | 7 ++++++ layout/reftests/xul-document-load/test013-2.css | 6 +++++ layout/reftests/xul-document-load/test013.xhtml | 8 +++++++ layout/reftests/xul-document-load/test022.xhtml | 17 +++++++++++++ 24 files changed, 235 insertions(+) create mode 100644 layout/reftests/xul-document-load/readme.txt create mode 100644 layout/reftests/xul-document-load/reference-green-window.xhtml create mode 100644 layout/reftests/xul-document-load/reftest.list create mode 100644 layout/reftests/xul-document-load/test003.css create mode 100644 layout/reftests/xul-document-load/test003.xhtml create mode 100644 layout/reftests/xul-document-load/test004.css create mode 100644 layout/reftests/xul-document-load/test004.xhtml create mode 100644 layout/reftests/xul-document-load/test005.css create mode 100644 layout/reftests/xul-document-load/test005.js create mode 100644 layout/reftests/xul-document-load/test005.xhtml create mode 100644 layout/reftests/xul-document-load/test006-007.js create mode 100644 layout/reftests/xul-document-load/test006.css create mode 100644 layout/reftests/xul-document-load/test006.xhtml create mode 100644 layout/reftests/xul-document-load/test008.xhtml create mode 100644 layout/reftests/xul-document-load/test010.css create mode 100644 layout/reftests/xul-document-load/test010.xhtml create mode 100644 layout/reftests/xul-document-load/test012-1.css create mode 100644 layout/reftests/xul-document-load/test012-2.css create mode 100644 layout/reftests/xul-document-load/test012.xhtml create mode 100644 layout/reftests/xul-document-load/test013-1-import.css create mode 100644 layout/reftests/xul-document-load/test013-1.css create mode 100644 layout/reftests/xul-document-load/test013-2.css create mode 100644 layout/reftests/xul-document-load/test013.xhtml create mode 100644 layout/reftests/xul-document-load/test022.xhtml (limited to 'layout/reftests/xul-document-load') diff --git a/layout/reftests/xul-document-load/readme.txt b/layout/reftests/xul-document-load/readme.txt new file mode 100644 index 0000000000..02b6138c8b --- /dev/null +++ b/layout/reftests/xul-document-load/readme.txt @@ -0,0 +1,27 @@ +This directory contains various XUL document (mozilla/dom/xul/document) testcases for reftest. + +test003: Checks that dynamically removing the stylesheet PI from an inline + script has expected effect. + +test004: Same as test003, but removing the stylesheet PI happens from a "load" + event handler. + +test005: Same as test003, but removing the stylesheet PI happens from a top-level + script in an external JS file. + +test006: Simple instruction in the prolog has an effect and exists + in the DOM. + +test008: Handle stylesheet PIs pointing to nonexistent resources gracefully. + +test010: PIs in the master document, outside the prolog, don't have any effect but get + added to the DOM. + +test012: Tests that sheets references from PIs are added to the + document in the same order as the PIs themselves are in - the simple case. + +test013: Tests the same thing as #012, but for the case when the first sheet contains + an @import statement, which makes it -finish- loading earlier than the + second sheet. + +test022: (bug 369828) works in XUL documents diff --git a/layout/reftests/xul-document-load/reference-green-window.xhtml b/layout/reftests/xul-document-load/reference-green-window.xhtml new file mode 100644 index 0000000000..4c6ca1987d --- /dev/null +++ b/layout/reftests/xul-document-load/reference-green-window.xhtml @@ -0,0 +1,7 @@ + + + diff --git a/layout/reftests/xul-document-load/reftest.list b/layout/reftests/xul-document-load/reftest.list new file mode 100644 index 0000000000..00d58ae45e --- /dev/null +++ b/layout/reftests/xul-document-load/reftest.list @@ -0,0 +1,9 @@ +== chrome://reftest/content/xul-document-load/test003.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml +== chrome://reftest/content/xul-document-load/test004.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml +== chrome://reftest/content/xul-document-load/test005.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml +== chrome://reftest/content/xul-document-load/test006.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml +== chrome://reftest/content/xul-document-load/test008.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml +== chrome://reftest/content/xul-document-load/test010.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml +== chrome://reftest/content/xul-document-load/test012.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml +== chrome://reftest/content/xul-document-load/test013.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml +== chrome://reftest/content/xul-document-load/test022.xhtml chrome://reftest/content/xul-document-load/reference-green-window.xhtml diff --git a/layout/reftests/xul-document-load/test003.css b/layout/reftests/xul-document-load/test003.css new file mode 100644 index 0000000000..3b18aff8b4 --- /dev/null +++ b/layout/reftests/xul-document-load/test003.css @@ -0,0 +1,6 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +window { + background-color: red !important; +} diff --git a/layout/reftests/xul-document-load/test003.xhtml b/layout/reftests/xul-document-load/test003.xhtml new file mode 100644 index 0000000000..fea3a05654 --- /dev/null +++ b/layout/reftests/xul-document-load/test003.xhtml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/layout/reftests/xul-document-load/test004.css b/layout/reftests/xul-document-load/test004.css new file mode 100644 index 0000000000..3b18aff8b4 --- /dev/null +++ b/layout/reftests/xul-document-load/test004.css @@ -0,0 +1,6 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +window { + background-color: red !important; +} diff --git a/layout/reftests/xul-document-load/test004.xhtml b/layout/reftests/xul-document-load/test004.xhtml new file mode 100644 index 0000000000..ccb030ba1f --- /dev/null +++ b/layout/reftests/xul-document-load/test004.xhtml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/layout/reftests/xul-document-load/test005.css b/layout/reftests/xul-document-load/test005.css new file mode 100644 index 0000000000..3b18aff8b4 --- /dev/null +++ b/layout/reftests/xul-document-load/test005.css @@ -0,0 +1,6 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +window { + background-color: red !important; +} diff --git a/layout/reftests/xul-document-load/test005.js b/layout/reftests/xul-document-load/test005.js new file mode 100644 index 0000000000..726acd417b --- /dev/null +++ b/layout/reftests/xul-document-load/test005.js @@ -0,0 +1,4 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +document.firstChild.remove(); diff --git a/layout/reftests/xul-document-load/test005.xhtml b/layout/reftests/xul-document-load/test005.xhtml new file mode 100644 index 0000000000..76adc60867 --- /dev/null +++ b/layout/reftests/xul-document-load/test005.xhtml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/layout/reftests/xul-document-load/test012-1.css b/layout/reftests/xul-document-load/test012-1.css new file mode 100644 index 0000000000..ed5e68c189 --- /dev/null +++ b/layout/reftests/xul-document-load/test012-1.css @@ -0,0 +1,6 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +window { + background-color: red; +} diff --git a/layout/reftests/xul-document-load/test012-2.css b/layout/reftests/xul-document-load/test012-2.css new file mode 100644 index 0000000000..ff59288db0 --- /dev/null +++ b/layout/reftests/xul-document-load/test012-2.css @@ -0,0 +1,6 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +window { + background-color: green; +} diff --git a/layout/reftests/xul-document-load/test012.xhtml b/layout/reftests/xul-document-load/test012.xhtml new file mode 100644 index 0000000000..7f9c647916 --- /dev/null +++ b/layout/reftests/xul-document-load/test012.xhtml @@ -0,0 +1,8 @@ + + + + + diff --git a/layout/reftests/xul-document-load/test013-1-import.css b/layout/reftests/xul-document-load/test013-1-import.css new file mode 100644 index 0000000000..b7eafb32da --- /dev/null +++ b/layout/reftests/xul-document-load/test013-1-import.css @@ -0,0 +1,6 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +window { + background-color: yellow; +} diff --git a/layout/reftests/xul-document-load/test013-1.css b/layout/reftests/xul-document-load/test013-1.css new file mode 100644 index 0000000000..dae0aa589e --- /dev/null +++ b/layout/reftests/xul-document-load/test013-1.css @@ -0,0 +1,7 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +@import url(test013-1-import.css); +window { + background-color: red; +} diff --git a/layout/reftests/xul-document-load/test013-2.css b/layout/reftests/xul-document-load/test013-2.css new file mode 100644 index 0000000000..ff59288db0 --- /dev/null +++ b/layout/reftests/xul-document-load/test013-2.css @@ -0,0 +1,6 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ */ + +window { + background-color: green; +} diff --git a/layout/reftests/xul-document-load/test013.xhtml b/layout/reftests/xul-document-load/test013.xhtml new file mode 100644 index 0000000000..d04a54fd32 --- /dev/null +++ b/layout/reftests/xul-document-load/test013.xhtml @@ -0,0 +1,8 @@ + + + + + diff --git a/layout/reftests/xul-document-load/test022.xhtml b/layout/reftests/xul-document-load/test022.xhtml new file mode 100644 index 0000000000..75dbbdd78e --- /dev/null +++ b/layout/reftests/xul-document-load/test022.xhtml @@ -0,0 +1,17 @@ + + + + + + window { + background-color: green !important; + } + + + -- cgit v1.2.3