Content-Type: multipart/related; boundary="---=_qute-5314618b-e51d-46e1-9598-103536e86b59"
MIME-Version: 1.0

-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/complex.html
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html><head>
        <meta http-equiv=3D"Content-Type" content=3D"text/html;charset=3DUT=
F-8">
        <title>qutebrowser mhtml test</title>
   =20
        <!-- make sure <style> tags are parsed  -->
        <style>
        body {
            background-image: url('Background.png');
            background-repeat: repeat-x;
            font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-=
serif;
            font-size: 120%;
        }
        img#banner {
            display: block;
            margin: 20px auto;
        }
        </style>
       =20
        <!-- make sure external css is included -->
        <link rel=3D"stylesheet" href=3D"base.css">
       =20
        <!-- don't parse non-CSS styles -->
        <style rel=3D"stylesheet" type=3D"text/qss">
        @import "not-css.qss";
        </style>
       =20
        <!-- make sure icons are included -->
        <link rel=3D"icon" href=3D"favicon.png">
       =20
        <!-- make sure authors are NOT included -->
        <link rel=3D"author" href=3D"author.html">
       =20
        <!-- make sure scripts are included -->
        <script type=3D"text/javascript" src=3D"script.js"></script>
       =20
         <!-- ...but don't crash on scripts without src -->
        <script>
            var l =3D 1+1;
        </script>
    </head>
    <body>
        <!-- make sure images are included -->
        <img src=3D"Banner.png" id=3D"banner">
       =20
        <h1>Welcome to the qutebrowser mhtml test page</h1>
       =20
        <div class=3D"dyk">
        ...that the word <em>qutebrowser</em> is a word play on Qt, the
        framework the browser is built with?
        </div>
       =20
        <h2>What is this page?</h2>
       =20
        <p>This page is a test-case for the mhtml download feature of
        qutebrowser. Under normal circumstances, you won't see this page, e=
xcept
        if you're a qutebrowser developer <em>or</em> you're attending one =
of
        The-Compiler's pytest demos.</p>
       =20
        <div class=3D"dyk">
        ...that this page was once a monstrosity with <em>"this weird pixel=
ated
        globe with the geocities-like background"</em>? You can find the old
        page in the old commits and indeed, it was quite atrocious. But hey,
        every browser needs a globe...
        </div>
       =20
        <p>This page references other assets and when the page is downloade=
d,
        qutebrowser checks if each asset was downloaded. If some assets are
        missing, the test fails and the poor developers have to search for =
the
        error.</p>
       =20
        <h2>Can I contribute to qutebrowser?</h2>
       =20
        <p>Yes!</p>
       =20
        <div class=3D"dyk">
        ...that qutebrowser is free software? Free as in <em>free beer</em>=
 and
        <em>free speech</em>! Isn't that great?
        </div>
       =20
        <h2>...and how?</h2>
       =20
        <p>See <a href=3D"https://github.com/qutebrowser/qutebrowser/blob/m=
aster/doc/contributing.asciidoc">
        here</a> for more information.</p>
       =20
        <h2>More useless trivia!</h2>
               =20
        <div class=3D"dyk">
        ...that the font in the header is Comic Sans?
        </div>
       =20
        <div class=3D"dyk">
        ...the IRC channel for qutebrowser is <code>#qutebrowser</code> on
        irc.freenode.net
        </div>
       =20
        <div class=3D"dyk">
        ...the area of a circle is =CF=80*r<sup>2</sup>?
        </div>
       =20
        <p>To make this page a bit useful, I've included a chessboard, so y=
ou
        can play chess. Just turn your screen 90 degrees, such that it form=
s a
        flat, horizontal surface (you can skip this step if you're using a
        tablet). Next, zoom the page until it fits your needs. Enjoy your r=
ound
        of chess!</p>
        <!-- make sure inline styles are parsed -->
        <div style=3D"background-image: url('Inline.png'); background-repea=
t: no-repeat; width: 160px; height: 160px;"></div>
   =20

</body></html>
-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/Background.png
MIME-Version: 1.0
Content-Type: image/png
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAIAAADITs03AAAACXBIWXMAAAsTAAALEwEAmpwYAAAA
B3RJTUUH4AICDwo6PeZczAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUH
AAAAMElEQVQY0+3DUQ0AIAxDwaYSYK+W5t8H84ALvrjk1N2W9D+613IFUxgwwSlcRHPmAgsRBhHi
LLCEAAAAAElFTkSuQmCC

-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/Banner.png
MIME-Version: 1.0
Content-Type: image/png
Content-Transfer-Encoding: base64

[encoded data, 23015 characters]

-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/DYK.png
MIME-Version: 1.0
Content-Type: image/png
Content-Transfer-Encoding: base64

[encoded data, 16628 characters]

-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/Inline.png
MIME-Version: 1.0
Content-Type: image/png
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA
B3RJTUUH4AICEBUm88fqUAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUH
AAABdUlEQVR42u3dwQmAQAxE0UTsv+W1hxAZhfcKkDl8dk+yfc45tai7Nz9Xy/Ps+9i+qyBIgAgQ
AYIAESAIEAGCABEgCBABggARIAgQAYIAESAIkP/qqlr9acA/EvY5AXEFgwARIAgQAYIAESAIEAGC
ABEgAgQBIkAQIAIEASJAeN3tHwn7kvucgLiCESAIEAGCABEgCBABggARIAgQAYIAESAIEAGCABEg
jHgnxL7oPicgrmAECAJEgCBABAgCRIAgQAQIAkSAIEAECAJEgCBABAgj3gmxL7rPCYgrGAGCABEg
CBABggARIAgQAYIAESAIEAGCABEgCBABwoh3QuyL7nMC4gpGgCBABAgCRIAgQAQIAkSAIEAECAJE
gCBABAgCRIAw4p0Q+6L7nIC4ghEgCBABggARIAgQAYIAESAIEAGCABEgCBABggARIIx4J8S+6D4n
IK5gBAgCRIAgQAQIAkSAIEAECAJEgCBABAgCRIAgQAQIIw997mYx/U+iXAAAAABJRU5ErkJggg==

-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/base.css
MIME-Version: 1.0
Content-Type: text/css; charset=utf-8
Content-Transfer-Encoding: quoted-printable

@import 'external-in-extern.css';
/* We want to make sure that assets referenced in external css files are
 * properly included
 */
div.dyk {
    /* Did you know? */
    background-image: url('DYK.png');
    background-repeat: no-repeat;
    /* Image is 128px wide */
    min-height: 128px;
    padding-left: 148px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 2px solid #474747;
    border-radius: 64px;
}
   =20
-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/external-in-extern.css
MIME-Version: 1.0
Content-Type: text/css; charset=utf-8
Content-Transfer-Encoding: quoted-printable

/* Just making sure that more than one level of external css is included */
h1, h2, h3, h4, h5, h6 {
    color: #0A396E;
    border-bottom: 1px dotted #474747;
}
-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/favicon.png
MIME-Version: 1.0
Content-Type: image/png
Content-Transfer-Encoding: base64

[encoded data, 6160 characters]
rkJggg==

-----=_qute-5314618b-e51d-46e1-9598-103536e86b59
Content-Location: http://localhost:1337/data/downloads/mhtml/complex/script.js
MIME-Version: 1.0
Content-Type: application/javascript
Content-Transfer-Encoding: base64

aWYgKHR5cGVvZiBTdHJpbmcucHJvdG90eXBlLmVuZHNXaXRoICE9PSAnZnVuY3Rpb24nKSB7CiAg
ICBTdHJpbmcucHJvdG90eXBlLmVuZHNXaXRoID0gZnVuY3Rpb24oc3VmZml4KSB7CiAgICAgICAg
cmV0dXJuIHRoaXMuaW5kZXhPZihzdWZmaXgsIHRoaXMubGVuZ3RoIC0gc3VmZml4Lmxlbmd0aCkg
IT09IC0xOwogICAgfTsKfQp3aW5kb3cuX2tleXMgPSAiIjsKZG9jdW1lbnQub25rZXlwcmVzcyA9
IGZ1bmN0aW9uKGV2dCkgewogIHZhciBlID0gZXZ0IHx8IHdpbmRvdy5ldmVudDsKICB3aW5kb3cu
X2tleXMgKz0gU3RyaW5nLmZyb21DaGFyQ29kZShlLmNoYXJDb2RlKTsKICBpZiAod2luZG93Ll9r
ZXlzLmVuZHNXaXRoKCJxdXRlIikpIHsKICAgIGFsZXJ0KCJJdCdzIGp1c3QgYSBxdXRlIGJyb3dz
ZXIhIik7CiAgICB3aW5kb3cuX2tleXMgPSAiIjsKICB9Cn0=

-----=_qute-5314618b-e51d-46e1-9598-103536e86b59--
