/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * Tests that the page data service can parse Open Graph metadata. */ add_task(async function test_type_website() { await verifyPageData( `
Test page
`, { siteName: "Mozilla", description: "Mozilla is the not-for-profit behind the lightning fast Firefox browser. We put people over profit to give everyone more power online.", image: "https://example.com/preview-image", data: {}, } ); }); add_task(async function test_type_movie() { await verifyPageData( `Test page
`, { image: "https://example.com/preview-code-rush", description: "This is the description of the movie.", data: {}, } ); });