tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_twitter.js (1204B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 /**
      6 * Basic tests for twitter cards.
      7 */
      8 
      9 add_task(async function test_twitter_card() {
     10  await verifyPageData(
     11    `
     12      <!DOCTYPE html>
     13      <html>
     14      <head>
     15        <meta name="twitter:card" content="summary_large_image">
     16        <meta name="twitter:site" content="@nytimes">
     17        <meta name="twitter:creator" content="@SarahMaslinNir">
     18        <meta name="twitter:title" content="Parade of Fans for Houston’s Funeral">
     19        <meta name="twitter:description" content="NEWARK - The guest list and parade of limousines">
     20        <meta name="twitter:image" content="http://graphics8.nytimes.com/images/2012/02/19/us/19whitney-span/19whitney-span-articleLarge.jpg">
     21      </head>
     22      <body>
     23      </body>
     24      </html>
     25    `,
     26    {
     27      siteName: "@nytimes",
     28      description: "NEWARK - The guest list and parade of limousines",
     29      image:
     30        "http://graphics8.nytimes.com/images/2012/02/19/us/19whitney-span/19whitney-span-articleLarge.jpg",
     31      data: {},
     32    }
     33  );
     34 });