diff options
author | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
commit | 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch) | |
tree | 75be5fba4368472fb11c8015aee026b2b9a71888 /school/node_modules/node-forge/tests/flash | |
parent | 8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff) | |
download | pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2 pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip |
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'school/node_modules/node-forge/tests/flash')
-rw-r--r-- | school/node_modules/node-forge/tests/flash/Test.as | 96 | ||||
-rw-r--r-- | school/node_modules/node-forge/tests/flash/build-flash.xml | 7 | ||||
-rw-r--r-- | school/node_modules/node-forge/tests/flash/index.html | 27 |
3 files changed, 0 insertions, 130 deletions
diff --git a/school/node_modules/node-forge/tests/flash/Test.as b/school/node_modules/node-forge/tests/flash/Test.as deleted file mode 100644 index 7c03727..0000000 --- a/school/node_modules/node-forge/tests/flash/Test.as +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2010 Digital Bazaar, Inc. All rights reserved. - * - * @author Dave Longley - */ -package -{ - import flash.display.Sprite; - - public class Test extends Sprite - { - import flash.events.*; - import flash.net.*; - - import flash.external.ExternalInterface; - import flash.system.Security; - - public function Test() - { - try - { - // FIXME: replace 'localhost' with cross-domain host to hit - var xhost:String = "localhost"; - Security.loadPolicyFile("xmlsocket://" + xhost + ":80"); - - var loader:URLLoader = new URLLoader(); - loader.addEventListener( - Event.COMPLETE, completeHandler); - loader.addEventListener( - Event.OPEN, openHandler); - loader.addEventListener( - ProgressEvent.PROGRESS, progressHandler); - loader.addEventListener( - SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); - loader.addEventListener( - HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); - loader.addEventListener( - IOErrorEvent.IO_ERROR, ioErrorHandler); - - var request:URLRequest = new URLRequest( - "http://" + xhost + "/index.html"); - loader.load(request); - } - catch(e:Error) - { - log("error=" + e.errorID + "," + e.name + "," + e.message); - throw e; - } - } - - private function log(obj:Object):void - { - if(obj is String) - { - var str:String = obj as String; - ExternalInterface.call("console.log", "Test", str); - } - else if(obj is Error) - { - var e:Error = obj as Error; - log("error=" + e.errorID + "," + e.name + "," + e.message); - } - } - - private function completeHandler(event:Event):void - { - var loader:URLLoader = URLLoader(event.target); - log("complete: " + loader.data); - } - - private function openHandler(event:Event):void - { - log("open: " + event); - } - - private function progressHandler(event:ProgressEvent):void - { - log("progress:" + event.bytesLoaded + " total: " + event.bytesTotal); - } - - private function securityErrorHandler(event:SecurityErrorEvent):void - { - log("securityError: " + event); - } - - private function httpStatusHandler(event:HTTPStatusEvent):void - { - log("httpStatus: " + event); - } - - private function ioErrorHandler(event:IOErrorEvent):void - { - log("ioError: " + event); - } - } -} diff --git a/school/node_modules/node-forge/tests/flash/build-flash.xml b/school/node_modules/node-forge/tests/flash/build-flash.xml deleted file mode 100644 index f037c58..0000000 --- a/school/node_modules/node-forge/tests/flash/build-flash.xml +++ /dev/null @@ -1,7 +0,0 @@ -<flex-config> - <compiler> - <source-path> - <path-element>.</path-element> - </source-path> - </compiler> -</flex-config> diff --git a/school/node_modules/node-forge/tests/flash/index.html b/school/node_modules/node-forge/tests/flash/index.html deleted file mode 100644 index 26a10b8..0000000 --- a/school/node_modules/node-forge/tests/flash/index.html +++ /dev/null @@ -1,27 +0,0 @@ -<html> - <head> - <link type="text/css" rel="stylesheet" media="all" href="screen.css" /> - <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> - - <script type="text/javascript"> - //<![CDATA[ - swfobject.embedSWF( - 'Test.swf', 'test', '0', '0', '9.0.0', - false, {}, {allowscriptaccess: 'always'}, {}); - //]]> - </script> - </head> - <body> - <div class="header"> - <h1>Flash Cross-Domain URLLoader Test</h1> - </div> - - <div class="content"> - - <div id="test"> - <p>Could not load the flash test.</p> - </div> - - </div> - </body> -</html> |