亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jsunittestmanager.js

?? 一個用javascript開發的可以拖拽表單的例子,很精典.
?? JS
?? 第 1 頁 / 共 2 頁
字號:
/* @author Edward Hieatt, edward@jsunit.net */function jsUnitTestManager(){  this._windowForAllProblemMessages = null;  this.container            = top.frames.testContainer  this.documentLoader       = top.frames.documentLoader;  this.mainFrame            = top.frames.mainFrame;  this.containerController = this.container.frames.testContainerController;  this.containerTestFrame  = this.container.frames.testFrame;  var mainData             = this.mainFrame.frames.mainData;  // form elements on mainData frame  this.testFileName        = mainData.document.testRunnerForm.testFileName;  this.runButton           = mainData.document.testRunnerForm.runButton;  this.traceLevel          = mainData.document.testRunnerForm.traceLevel;  this.closeTraceWindowOnNewRun = mainData.document.testRunnerForm.closeTraceWindowOnNewRun;  this.timeout             = mainData.document.testRunnerForm.timeout;  this.setUpPageTimeout      = mainData.document.testRunnerForm.setUpPageTimeout;  // image output  this.progressBar         = this.mainFrame.frames.mainProgress.document.progress;  this.problemsListField           = this.mainFrame.frames.mainErrors.document.testRunnerForm.problemsList;  this.testCaseResultsField        = this.mainFrame.frames.mainResults.document.resultsForm.testCases;    this.resultsTimeField			   = this.mainFrame.frames.mainResults.document.resultsForm.time;    // 'layer' output frames  this.uiFrames                    = new Object();  this.uiFrames.mainStatus         = this.mainFrame.frames.mainStatus;  var mainCounts                   = this.mainFrame.frames.mainCounts;  this.uiFrames.mainCountsErrors   = mainCounts.frames.mainCountsErrors;  this.uiFrames.mainCountsFailures = mainCounts.frames.mainCountsFailures;  this.uiFrames.mainCountsRuns     = mainCounts.frames.mainCountsRuns;  this._baseURL = "";  this.setup();}// seconds to wait for each test page to loadjsUnitTestManager.TESTPAGE_WAIT_SEC  = 20;jsUnitTestManager.TIMEOUT_LENGTH     = 20;// seconds to wait for setUpPage to completejsUnitTestManager.SETUPPAGE_TIMEOUT    = 60; // milliseconds to wait between polls on setUpPagesjsUnitTestManager.SETUPPAGE_INTERVAL   = 100;jsUnitTestManager.prototype.setup = function (){  this.totalCount    = 0;  this.errorCount    = 0;  this.failureCount  = 0;  this._suiteStack   = Array();  var initialSuite   = new top.jsUnitTestSuite();  push(this._suiteStack, initialSuite);}jsUnitTestManager.prototype.start = function () {  this._baseURL = this.resolveUserEnteredTestFileName();  var firstQuery = this._baseURL.indexOf("?");  if (firstQuery >= 0) {       this._baseURL = this._baseURL.substring(0, firstQuery);  }  var lastSlash = this._baseURL.lastIndexOf("/");  var lastRevSlash = this._baseURL.lastIndexOf("\\");  if (lastRevSlash > lastSlash) {     lastSlash = lastRevSlash;  }  if (lastSlash > 0) {     this._baseURL = this._baseURL.substring(0, lastSlash + 1);  }  this._timeRunStarted = new Date();  this.initialize();  setTimeout('top.testManager._nextPage();', jsUnitTestManager.TIMEOUT_LENGTH);}jsUnitTestManager.prototype.getBaseURL = function () {  return this._baseURL;}jsUnitTestManager.prototype.doneLoadingPage = function (pageName) {  //this.containerTestFrame.setTracer(top.tracer);  this._testFileName = pageName;  if (this.isTestPageSuite())     this._handleNewSuite();  else  {    this._testIndex   = 0;    this._testsInPage = this.getTestFunctionNames();    this._numberOfTestsInPage = this._testsInPage.length;    this._runTest();  }}jsUnitTestManager.prototype._handleNewSuite = function () {  var allegedSuite = this.containerTestFrame.suite();  if (allegedSuite.isjsUnitTestSuite) {    var newSuite = allegedSuite.clone();    if (newSuite.containsTestPages())      push(this._suiteStack, newSuite);    this._nextPage();  }  else {    alert('Invalid test suite in file ' + this._testFileName);    this.abort();  }}jsUnitTestManager.prototype._runTest = function () {  if (this._testIndex + 1 > this._numberOfTestsInPage)  {    this._nextPage();    return;  }  if (this._testIndex == 0 && typeof(this.containerTestFrame.setUpPage) == 'function')  {    // first test for this page and a setUpPage is defined    if (typeof(this.containerTestFrame.setUpPageStatus) == 'undefined')    {      // setUpPage() not called yet, so call it      this.containerTestFrame.setUpPageStatus = false;      this.containerTestFrame.startTime = new Date();      this.containerTestFrame.setUpPage();      // try test again later      setTimeout('top.testManager._runTest()', jsUnitTestManager.SETUPPAGE_INTERVAL);      return;    }    if (this.containerTestFrame.setUpPageStatus != 'complete')    {      // setUpPage called, but not complete yet      top.status = 'setUpPage not completed... ' + this.containerTestFrame.setUpPageStatus + ' ' + (new Date());      if ((new Date() - this.containerTestFrame.startTime) /1000 > this.getsetUpPageTimeout()) {        alert('setUpPage timed out without completing.');        if (prompt('Retry or Cancel ?', 'Retry') != 'Retry')        {          this.abort();          return;        }        this.containerTestFrame.startTime = (new Date());      }      // try test again later      setTimeout('top.testManager._runTest()', jsUnitTestManager.SETUPPAGE_INTERVAL);      return;    }  }  top.status = '';  // either not first test, or no setUpPage defined, or setUpPage completed  this.executeTestFunction(this._testsInPage[this._testIndex]);  this.totalCount++;  this.updateProgressIndicators();  this._testIndex++;  setTimeout('top.testManager._runTest()', jsUnitTestManager.TIMEOUT_LENGTH);}jsUnitTestManager.prototype._done = function () {  var secondsSinceRunBegan=(new Date() - this._timeRunStarted)/1000;  this.setStatus('Done (' + secondsSinceRunBegan + ' seconds)');  this._cleanUp();  if (top.shouldSubmitResults()) {    this.resultsTimeField.value = secondsSinceRunBegan;  	top.submitResults();  }}jsUnitTestManager.prototype._nextPage = function () {  if (this._currentSuite().hasMorePages()) {    this.loadPage(this._currentSuite().nextPage());  }  else {    pop(this._suiteStack);    if (this._currentSuite() == null)      this._done();    else      this._nextPage();  }}jsUnitTestManager.prototype._currentSuite = function () {  var suite = null;  if (this._suiteStack && this._suiteStack.length > 0)    suite = this._suiteStack[this._suiteStack.length-1];  return suite;}jsUnitTestManager.prototype.calculateProgressBarProportion = function () {  if (this.totalCount == 0)     return 0;  var currentDivisor = 1;  var result         = 0;    for (var i = 0; i < this._suiteStack.length; i++) {    var aSuite     = this._suiteStack[i];    currentDivisor *= aSuite.testPages.length;    result += (aSuite.pageIndex - 1)/currentDivisor;  }  result += (this._testIndex + 1)/(this._numberOfTestsInPage * currentDivisor);  return result;}jsUnitTestManager.prototype._cleanUp = function () {  this.containerController.setTestPage('./app/emptyPage.html');  this.finalize();  top.tracer.finalize();}jsUnitTestManager.prototype.abort = function () {  this.setStatus('Aborted');  this._cleanUp();}jsUnitTestManager.prototype.getTimeout = function () {  var result = jsUnitTestManager.TESTPAGE_WAIT_SEC;  try {    result = eval(this.timeout.value);  }   catch (e) {  }  return result;}jsUnitTestManager.prototype.getsetUpPageTimeout = function () {  var result = jsUnitTestManager.SETUPPAGE_TIMEOUT;  try {    result = eval(this.setUpPageTimeout.value);  }   catch (e) {  }  return result;}jsUnitTestManager.prototype.isTestPageSuite = function () {  var result = false;  if (typeof(this.containerTestFrame.suite) == 'function')  {    result = true;  }  return result;}jsUnitTestManager.prototype.getTestFunctionNames = function () {  var testFrame         = this.containerTestFrame;  var testFunctionNames = new Array();  var i;    if (testFrame && typeof(testFrame.exposeTestFunctionNames) == 'function')        return testFrame.exposeTestFunctionNames();    if (testFrame &&       testFrame.document &&       typeof(testFrame.document.scripts) != 'undefined') { // IE5 and up    var scriptsInTestFrame = testFrame.document.scripts;        for (i = 0; i < scriptsInTestFrame.length; i++) {      var someNames = this._extractTestFunctionNamesFromScript(scriptsInTestFrame[i]);      if (someNames)        testFunctionNames=testFunctionNames.concat(someNames);    }  }   else {    for (i in testFrame) {      if (i.substring(0, 4) == 'test' && typeof(testFrame[i]) == 'function')        push(testFunctionNames, i);    }  }  return testFunctionNames;}jsUnitTestManager.prototype._extractTestFunctionNamesFromScript = function (aScript) {  var result;  var remainingScriptToInspect = aScript.text;  var currentIndex             = remainingScriptToInspect.indexOf('function test');  while (currentIndex != -1) {    if (!result)       result=new Array();          var fragment = remainingScriptToInspect.substring(currentIndex, remainingScriptToInspect.length);    result       = result.concat(fragment.substring('function '.length, fragment.indexOf('(')));                remainingScriptToInspect=remainingScriptToInspect.substring(currentIndex+12, remainingScriptToInspect.length);                currentIndex=remainingScriptToInspect.indexOf('function test');  }  return result;}jsUnitTestManager.prototype.loadPage = function (testFileName) {  this._testFileName         = testFileName;  this._loadAttemptStartTime = new Date();  this.setStatus('Opening Test Page "' + this._testFileName + '"');  this.containerController.setTestPage(this._testFileName);  this._callBackWhenPageIsLoaded();}jsUnitTestManager.prototype._callBackWhenPageIsLoaded = function () {  if ((new Date() - this._loadAttemptStartTime) / 1000 > this.getTimeout()) {    alert('Reading Test Page ' + this._testFileName + ' timed out.\nMake sure that the file exists and is a Test Page.');    if (prompt('Retry or Cancel ?', 'Retry') != 'Retry')    {      this.abort();      return;    }  }  if (!this._isTestFrameLoaded()) {    setTimeout('top.testManager._callBackWhenPageIsLoaded();', jsUnitTestManager.TIMEOUT_LENGTH);    return;  }  this.doneLoadingPage(this._testFileName);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品亚洲国产奇米99| 欧美一区二区三区系列电影| 欧美性受xxxx| 2023国产精品自拍| 亚洲综合久久久| 国产精品综合一区二区三区| 91麻豆国产自产在线观看| 日韩精品一区二区三区视频| 亚洲香肠在线观看| 丰满少妇在线播放bd日韩电影| 欧美无砖砖区免费| 亚洲欧美综合网| 国产一区二区电影| 日韩午夜三级在线| 亚洲成人中文在线| 在线免费观看视频一区| 国产亚洲一二三区| 奇米精品一区二区三区在线观看 | 亚洲一区二区三区小说| 国产成人免费在线视频| 欧美亚洲国产一区二区三区va | 日韩av电影免费观看高清完整版 | 一区二区三区产品免费精品久久75| 日韩精品五月天| 91在线观看视频| 久久久噜噜噜久久人人看 | 国产成人午夜精品5599| 欧美男人的天堂一二区| 亚洲乱码国产乱码精品精可以看| 男女性色大片免费观看一区二区 | 成+人+亚洲+综合天堂| 精品免费视频.| 亚洲午夜在线观看视频在线| 成人动漫视频在线| 久久精品人人做人人爽97| 视频一区在线视频| 色天天综合色天天久久| 久久久久久久久久久久久夜| 日本美女一区二区| 欧美日韩亚洲另类| 一区二区三区在线观看欧美| 粉嫩嫩av羞羞动漫久久久| 日韩视频免费观看高清完整版 | 99re这里只有精品6| 精品久久99ma| 日日夜夜一区二区| 欧美视频一区二区三区四区| 一区二区欧美精品| 欧美影院精品一区| 亚洲视频一区在线| thepron国产精品| 国产欧美一区二区在线观看| 久久国产精品露脸对白| 精品久久久影院| 免费成人在线视频观看| 91精品国产91久久综合桃花| 欧美96一区二区免费视频| 欧美一级爆毛片| 蜜桃久久久久久| 欧美不卡一区二区三区| 另类小说一区二区三区| 欧美刺激午夜性久久久久久久| 三级亚洲高清视频| 日韩精品自拍偷拍| 国内精品久久久久影院色| 日韩欧美国产1| 国产乱码一区二区三区| 国产精品污www在线观看| av在线一区二区| 亚洲免费观看视频| 欧美日韩在线播放三区| 青青草原综合久久大伊人精品| 91精品国产手机| 国产呦精品一区二区三区网站| 日韩久久久久久| 91麻豆123| 免费在线观看不卡| 国产亚洲短视频| 99国产精品久| 日韩av在线发布| 国产精品视频麻豆| 欧美在线一二三| 九色|91porny| 亚洲狼人国产精品| 91麻豆精品国产91久久久使用方法 | 国产日韩精品视频一区| 一本大道久久a久久精品综合| 亚洲欧洲日韩在线| av在线免费不卡| 激情综合网天天干| 亚洲欧美另类小说视频| 欧美一区二区视频网站| 福利电影一区二区| 天堂av在线一区| 国产欧美综合在线观看第十页| 日本韩国一区二区| 国内精品伊人久久久久av影院| 国产亚洲综合在线| 精品欧美一区二区三区精品久久| thepron国产精品| 久久机这里只有精品| 亚洲欧美国产高清| 欧美成人女星排行榜| 色久优优欧美色久优优| 黑人精品欧美一区二区蜜桃| 亚洲黄色小视频| 精品日产卡一卡二卡麻豆| 欧美剧在线免费观看网站| 波多野结衣在线一区| 毛片av一区二区| 亚洲一区二区欧美| 亚洲欧洲无码一区二区三区| 欧美tk丨vk视频| 欧美日韩一区二区三区在线| 99久久亚洲一区二区三区青草| 久久国产福利国产秒拍| 婷婷成人激情在线网| ...xxx性欧美| 久久青草欧美一区二区三区| 欧美一区二区三区免费视频| 日本高清不卡aⅴ免费网站| 国产成人h网站| 久久91精品久久久久久秒播| 一区二区三区不卡视频| 亚洲一区成人在线| 亚洲乱码国产乱码精品精可以看| 国产视频一区在线观看 | 国产精品18久久久久| 美女爽到高潮91| 美腿丝袜在线亚洲一区| 午夜av一区二区| 亚洲成人av一区二区| 日韩中文字幕亚洲一区二区va在线| 亚洲欧洲制服丝袜| 亚洲欧美日韩国产手机在线 | 在线观看视频91| 色综合天天性综合| 欧美这里有精品| 欧美久久一二区| 欧美日韩精品久久久| 欧美日韩一区二区三区四区五区| 91视频com| 99国产精品99久久久久久| 91在线你懂得| 日本电影亚洲天堂一区| 欧美三级日本三级少妇99| 欧美在线免费视屏| 欧美日韩国产乱码电影| 欧美一区二区黄| 国产亚洲欧美日韩在线一区| 久久久久9999亚洲精品| 国产精品不卡在线| 国产精品久久久久天堂| 久久久91精品国产一区二区精品 | 99久久久久免费精品国产| 91蜜桃婷婷狠狠久久综合9色| 看片网站欧美日韩| 99免费精品在线| 欧美精品在线观看播放| 欧美精品色一区二区三区| 欧美日韩国产综合视频在线观看| 欧美一级夜夜爽| 亚洲国产高清aⅴ视频| **欧美大码日韩| 日本va欧美va精品发布| 成人小视频在线观看| 在线观看亚洲精品视频| 国产亚洲欧美色| 亚洲综合免费观看高清完整版在线| 日本美女一区二区三区视频| 成人性生交大片免费| 欧美精品黑人性xxxx| 久久久欧美精品sm网站| 五月天精品一区二区三区| 国产成人在线视频免费播放| 在线观看成人小视频| 精品久久久久久无| 亚洲精品成人a在线观看| 美腿丝袜一区二区三区| 91在线国内视频| 日韩一级黄色片| 国产精品国产馆在线真实露脸| 午夜电影网一区| 日本电影亚洲天堂一区| 国产欧美一区在线| 亚洲成av人片www| 成人国产精品免费| 欧美一级在线观看| 亚洲小说春色综合另类电影| 成人亚洲一区二区一| 3d成人h动漫网站入口| 亚洲少妇中出一区| 国产伦精品一区二区三区视频青涩 | 亚洲成人你懂的| 99国产精品久久久久久久久久久| wwwwww.欧美系列| 日韩激情av在线| 在线看不卡av| 亚洲欧洲成人精品av97| 成人高清免费在线播放|