From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001
From: Daniel Baumann
Date: Sun, 28 Apr 2024 16:29:10 +0200
Subject: Adding upstream version 86.0.1.
Signed-off-by: Daniel Baumann
---
.../components/places/tests/chrome/bad_links.atom | 74 +++++++++++
.../chrome/browser_disableglobalhistory.xhtml | 40 ++++++
toolkit/components/places/tests/chrome/chrome.ini | 7 ++
toolkit/components/places/tests/chrome/head.js | 19 +++
.../tests/chrome/link-less-items-no-site-uri.rss | 18 +++
.../places/tests/chrome/link-less-items.rss | 19 +++
.../components/places/tests/chrome/rss_as_html.rss | 27 +++++
.../places/tests/chrome/rss_as_html.rss^headers^ | 2 +
.../places/tests/chrome/sample_feed.atom | 23 ++++
.../places/tests/chrome/test_371798.xhtml | 96 +++++++++++++++
.../chrome/test_browser_disableglobalhistory.xhtml | 25 ++++
.../tests/chrome/test_favicon_annotations.xhtml | 135 +++++++++++++++++++++
12 files changed, 485 insertions(+)
create mode 100644 toolkit/components/places/tests/chrome/bad_links.atom
create mode 100644 toolkit/components/places/tests/chrome/browser_disableglobalhistory.xhtml
create mode 100644 toolkit/components/places/tests/chrome/chrome.ini
create mode 100644 toolkit/components/places/tests/chrome/head.js
create mode 100644 toolkit/components/places/tests/chrome/link-less-items-no-site-uri.rss
create mode 100644 toolkit/components/places/tests/chrome/link-less-items.rss
create mode 100644 toolkit/components/places/tests/chrome/rss_as_html.rss
create mode 100644 toolkit/components/places/tests/chrome/rss_as_html.rss^headers^
create mode 100644 toolkit/components/places/tests/chrome/sample_feed.atom
create mode 100644 toolkit/components/places/tests/chrome/test_371798.xhtml
create mode 100644 toolkit/components/places/tests/chrome/test_browser_disableglobalhistory.xhtml
create mode 100644 toolkit/components/places/tests/chrome/test_favicon_annotations.xhtml
(limited to 'toolkit/components/places/tests/chrome')
diff --git a/toolkit/components/places/tests/chrome/bad_links.atom b/toolkit/components/places/tests/chrome/bad_links.atom
new file mode 100644
index 0000000000..4469272524
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/bad_links.atom
@@ -0,0 +1,74 @@
+
+
+
+ Example Feed
+
+ 2003-12-13T18:30:02Z
+
+
+ John Doe
+
+ urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6
+
+
+
+ First good item
+
+ urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
+ 2003-12-13T18:30:02Z
+
+ Some text.
+
+
+
+
+ data: link
+
+ urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6b
+ 2003-12-13T18:30:03Z
+
+ Some text.
+
+
+
+
+ javascript: link
+
+ urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6c
+ 2003-12-13T18:30:04Z
+
+ Some text.
+
+
+
+
+ file: link
+
+ urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6d
+ 2003-12-13T18:30:05Z
+
+ Some text.
+
+
+
+
+ chrome: link
+
+ urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6e
+ 2003-12-13T18:30:06Z
+
+ Some text.
+
+
+
+
+ Last good item
+
+ urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6b
+ 2003-12-13T18:30:07Z
+
+ Some text.
+
+
+
+
diff --git a/toolkit/components/places/tests/chrome/browser_disableglobalhistory.xhtml b/toolkit/components/places/tests/chrome/browser_disableglobalhistory.xhtml
new file mode 100644
index 0000000000..f8482ca989
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/browser_disableglobalhistory.xhtml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/toolkit/components/places/tests/chrome/chrome.ini b/toolkit/components/places/tests/chrome/chrome.ini
new file mode 100644
index 0000000000..20f6e89db9
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/chrome.ini
@@ -0,0 +1,7 @@
+[DEFAULT]
+support-files = head.js
+
+[test_371798.xhtml]
+[test_favicon_annotations.xhtml]
+[test_browser_disableglobalhistory.xhtml]
+support-files = browser_disableglobalhistory.xhtml
diff --git a/toolkit/components/places/tests/chrome/head.js b/toolkit/components/places/tests/chrome/head.js
new file mode 100644
index 0000000000..dff91fb89c
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/head.js
@@ -0,0 +1,19 @@
+var { XPCOMUtils } = ChromeUtils.import(
+ "resource://gre/modules/XPCOMUtils.jsm"
+);
+
+ChromeUtils.defineModuleGetter(
+ this,
+ "PlacesTestUtils",
+ "resource://testing-common/PlacesTestUtils.jsm"
+);
+ChromeUtils.defineModuleGetter(
+ this,
+ "PlacesUtils",
+ "resource://gre/modules/PlacesUtils.jsm"
+);
+ChromeUtils.defineModuleGetter(
+ this,
+ "NetUtil",
+ "resource://gre/modules/NetUtil.jsm"
+);
diff --git a/toolkit/components/places/tests/chrome/link-less-items-no-site-uri.rss b/toolkit/components/places/tests/chrome/link-less-items-no-site-uri.rss
new file mode 100644
index 0000000000..612b0a5c2e
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/link-less-items-no-site-uri.rss
@@ -0,0 +1,18 @@
+
+
+
+ feed title
+ 180
+ -
+ linked feed item
+ http://feed-item-link.com
+
+ -
+ link-less feed item
+
+ -
+ linked feed item
+ http://feed-item-link.com
+
+
+
diff --git a/toolkit/components/places/tests/chrome/link-less-items.rss b/toolkit/components/places/tests/chrome/link-less-items.rss
new file mode 100644
index 0000000000..a30d4a3531
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/link-less-items.rss
@@ -0,0 +1,19 @@
+
+
+
+ feed title
+ http://feed-link.com
+ 180
+ -
+ linked feed item
+ http://feed-item-link.com
+
+ -
+ link-less feed item
+
+ -
+ linked feed item
+ http://feed-item-link.com
+
+
+
diff --git a/toolkit/components/places/tests/chrome/rss_as_html.rss b/toolkit/components/places/tests/chrome/rss_as_html.rss
new file mode 100644
index 0000000000..e823050353
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/rss_as_html.rss
@@ -0,0 +1,27 @@
+
+
+
+sadfasdfasdfasfasdf
+http://www.example.com
+asdfasdfasdf.example.com
+de
+asdfasdfasdfasdf
+Tue, 11 Mar 2008 18:52:52 +0100
+http://blogs.law.harvard.edu/tech/rss
+10
+-
+The First Title
+http://www.example.com/index.html
+Tue, 11 Mar 2008 18:24:43 +0100
+
+
+askdlfjas;dfkjas;fkdj
+
+]]>
+
+aklsjdhfasdjfahasdfhj
+http://foo.example.com/asdfasdf
+
+
+
diff --git a/toolkit/components/places/tests/chrome/rss_as_html.rss^headers^ b/toolkit/components/places/tests/chrome/rss_as_html.rss^headers^
new file mode 100644
index 0000000000..04fbaa08fe
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/rss_as_html.rss^headers^
@@ -0,0 +1,2 @@
+HTTP 200 OK
+Content-Type: text/html
diff --git a/toolkit/components/places/tests/chrome/sample_feed.atom b/toolkit/components/places/tests/chrome/sample_feed.atom
new file mode 100644
index 0000000000..add75efb4d
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/sample_feed.atom
@@ -0,0 +1,23 @@
+
+
+
+ Example Feed
+
+ 2003-12-13T18:30:02Z
+
+
+ John Doe
+
+ urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6
+
+
+
+ Atom-Powered Robots Run Amok
+
+ urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
+ 2003-12-13T18:30:02Z
+
+ Some text.
+
+
+
diff --git a/toolkit/components/places/tests/chrome/test_371798.xhtml b/toolkit/components/places/tests/chrome/test_371798.xhtml
new file mode 100644
index 0000000000..23cfd8ca12
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/test_371798.xhtml
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/toolkit/components/places/tests/chrome/test_browser_disableglobalhistory.xhtml b/toolkit/components/places/tests/chrome/test_browser_disableglobalhistory.xhtml
new file mode 100644
index 0000000000..6a7d32dabe
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/test_browser_disableglobalhistory.xhtml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/toolkit/components/places/tests/chrome/test_favicon_annotations.xhtml b/toolkit/components/places/tests/chrome/test_favicon_annotations.xhtml
new file mode 100644
index 0000000000..27b2c67f5f
--- /dev/null
+++ b/toolkit/components/places/tests/chrome/test_favicon_annotations.xhtml
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.2.3