dom/plugins/test/mochitest/test_pluginstream_poststream.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/test/mochitest/test_pluginstream_poststream.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +  <title>NPAPI NPN_PostURL NPStream Test</title>
     1.7 +  <script type="text/javascript" 
     1.8 +          src="/tests/SimpleTest/SimpleTest.js"></script>
     1.9 +  <script type="text/javascript" 
    1.10 +          src="pluginstream.js"></script>
    1.11 +  <script type="text/javascript" src="utils.js"></script>
    1.12 +  <script type="text/javascript">
    1.13 +    setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
    1.14 +  </script>
    1.15 +  <link rel="stylesheet" type="text/css" 
    1.16 +        href="/tests/SimpleTest/test.css" />
    1.17 +</head>
    1.18 +<body>
    1.19 +  <p id="display"></p>
    1.20 +
    1.21 +  <iframe id="testframe" name="testframe" onload="frameLoaded()"></iframe>
    1.22 +
    1.23 +  <!--
    1.24 +   - Same as test_pluginstream_post.html, except NULL is passed to NPN_PostURL
    1.25 +   - as the frame parameter, so the HTTP response to the post is passed to the
    1.26 +   - plugin via NPP_NewStream. Once this stream is received, it's displayed
    1.27 +   - in a frame in the browser via a call to NPN_GetURL.
    1.28 +   -->
    1.29 +  <embed src="loremipsum.txt" streammode="normal"
    1.30 +         frame="testframe" posturl="post.sjs" postmode="stream"
    1.31 +         id="embedtest" style="width: 400px; height: 100px;"
    1.32 +         type="application/x-test"></embed>
    1.33 +</body>
    1.34 +</html>

mercurial