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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jsunittestmanager.js

?? 一個(gè)用javascript開(kāi)發(fā)的可以拖拽表單的例子,很精典.
?? JS
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
jsUnitTestManager.prototype._isTestFrameLoaded = function () {  try {    return this.containerController.isPageLoaded();  }   catch (e) {  }  return false;}jsUnitTestManager.prototype.executeTestFunction = function (functionName) {  this._testFunctionName=functionName;  this.setStatus('Running test "' + this._testFunctionName + '"');  var excep=null;  var timeBefore = new Date();    try {    this.containerTestFrame.setUp();    eval('this.containerTestFrame.' + this._testFunctionName + '();');  }   catch (e1) {    excep = e1;  }  finally {    try {      this.containerTestFrame.tearDown();    }     catch (e2) {      excep = e2;    }  }  var timeTaken = (new Date() - timeBefore) / 1000;  if (excep != null)    this._handleTestException(excep);  var serializedTestCaseString = this._fullyQualifiedCurrentTestFunctionName()+"|"+timeTaken+"|";  if (excep==null)  	serializedTestCaseString+="S||";  else {  	if (typeof(excep.isJsUnitException) != 'undefined' && excep.isJsUnitException)  		serializedTestCaseString+="F|";  	else {  		serializedTestCaseString+="E|";  	}  	serializedTestCaseString+=this._problemDetailMessageFor(excep);  }  	  var newOption = new Option(serializedTestCaseString);  this.testCaseResultsField[this.testCaseResultsField.length]=newOption;  }jsUnitTestManager.prototype._fullyQualifiedCurrentTestFunctionName = function() {    var testURL = this.containerTestFrame.location.href;    var testQuery = testURL.indexOf("?");    if (testQuery >= 0) {        testURL = testURL.substring(0, testQuery);    }    if (testURL.substring(0, this._baseURL.length) == this._baseURL) {          testURL = testURL.substring(this._baseURL.length);    }    return testURL + ':' + this._testFunctionName;}jsUnitTestManager.prototype._handleTestException = function (excep) {  var problemMessage = this._fullyQualifiedCurrentTestFunctionName() + ' ';  var errOption;  if (typeof(excep.isJsUnitException) == 'undefined' || !excep.isJsUnitException) {    problemMessage += 'had an error';    this.errorCount++;  }   else {    problemMessage += 'failed';    this.failureCount++;  }  var listField = this.problemsListField;  var problemDocument = this.mainFrame.frames.mainErrors.document;  if (typeof(problemDocument.createElement) != 'undefined') {    // DOM Level 2 HTML method.    // this is required for Opera 7 since appending to the end of the     // options array does not work, and adding an Option created by new Option()    // and appended by listField.options.add() fails due to WRONG_DOCUMENT_ERR    errOption = problemDocument.createElement('option');    errOption.setAttribute('value', this._problemDetailMessageFor(excep));    errOption.appendChild(problemDocument.createTextNode(problemMessage));    listField.appendChild(errOption);  }  else {    // new Option() is DOM 0    errOption = new Option(problemMessage, this._problemDetailMessageFor(excep));    if (typeof(listField.add) != 'undefined') {      // DOM 2 HTML       listField.add( errOption , null);    }    else if (typeof(listField.options.add) != 'undefined') {      // DOM 0      listField.options.add( errOption, null);    }    else {      // DOM 0      listField.options[listField.length]= errOption;    }  }}jsUnitTestManager.prototype._problemDetailMessageFor = function (excep) {  var result=null;  if (typeof(excep.isJsUnitException) != 'undefined' && excep.isJsUnitException) {    result = '';    if (excep.comment != null)      result+=('"'+excep.comment+'"\n');        result += excep.jsUnitMessage;        if (excep.stackTrace)      result+='\n\nStack trace follows:\n'+excep.stackTrace;  }  else {    result = 'Error message is:\n"';    result +=      (typeof(excep.description) == 'undefined') ?      excep :      excep.description;    result += '"';    if (typeof(excep.stack) != 'undefined') // Mozilla only      result+='\n\nStack trace follows:\n'+excep.stack;  }  return result;}jsUnitTestManager.prototype._setTextOnLayer = function (layerName, str){  var html = '';  html += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';  html += '<html><head><link rel="stylesheet" type="text/css" href="css/jsUnitStyle.css"><\/head>';  html += '<body><div>';  html += str;  html += '<\/div><\/body>';  html += '<\/html>';  this.uiFrames[layerName].document.write(html);  this.uiFrames[layerName].document.close();}jsUnitTestManager.prototype.setStatus = function (str){  this._setTextOnLayer('mainStatus', '<b>Status:<\/b> '+str);}jsUnitTestManager.prototype._setErrors = function (n){  this._setTextOnLayer('mainCountsErrors', '<b>Errors: <\/b>' + n);}jsUnitTestManager.prototype._setFailures = function (n){  this._setTextOnLayer('mainCountsFailures', '<b>Failures:<\/b> ' + n);}jsUnitTestManager.prototype._setTotal = function (n){  this._setTextOnLayer('mainCountsRuns', '<b>Runs:<\/b> ' + n);}jsUnitTestManager.prototype._setProgressBarImage = function (imgName){  this.progressBar.src=imgName;}jsUnitTestManager.prototype._setProgressBarWidth = function (w){  this.progressBar.width=w;}jsUnitTestManager.prototype.updateProgressIndicators = function (){  this._setTotal(this.totalCount);  this._setErrors(this.errorCount);  this._setFailures(this.failureCount);  this._setProgressBarWidth(300 * this.calculateProgressBarProportion());  if (this.errorCount > 0 || this.failureCount > 0)    this._setProgressBarImage('../images/red.gif');  else    this._setProgressBarImage('../images/green.gif');}jsUnitTestManager.prototype.showMessageForSelectedProblemTest = function (){  var problemTestIndex = this.problemsListField.selectedIndex;  if (problemTestIndex != -1)    alert(this.problemsListField[problemTestIndex].value);}jsUnitTestManager.prototype.showMessagesForAllProblemTests = function (){   if (this.problemsListField.length == 0)      return;   try   {     if (this._windowForAllProblemMessages && !this._windowForAllProblemMessages.closed)       this._windowForAllProblemMessages.close();   }   catch(e)   {   }   this._windowForAllProblemMessages = window.open('','','width=600, height=350,status=no,resizable=yes,scrollbars=yes');   var resDoc = this._windowForAllProblemMessages.document;   resDoc.write('<html><head><link rel="stylesheet" href="../css/jsUnitStyle.css"><title>Tests with problems - JsUnit<\/title><head><body>');   resDoc.write('<p class="jsUnitSubHeading">Tests with problems (' + this.problemsListField.length + ' total) - JsUnit<\/p>');   resDoc.write('<p class="jsUnitSubSubHeading"><i>Running on '+navigator.userAgent+'</i></p>');   for (var i = 0; i < this.problemsListField.length; i++)   {     resDoc.write('<p class="jsUnitDefault">');     resDoc.write('<b>' + (i + 1) + '. ');     resDoc.write(this.problemsListField[i].text);     resDoc.write('<\/b><\/p><p><pre>');     resDoc.write(this.problemsListField[i].value);     resDoc.write('<\/pre><\/p>');   }   resDoc.write('<\/body><\/html>');   resDoc.close();}jsUnitTestManager.prototype._clearProblemsList = function (){  var listField = this.problemsListField;  var initialLength=listField.options.length;  for (var i = 0; i < initialLength; i++)    listField.remove(0);}jsUnitTestManager.prototype.initialize = function (){  this.setStatus('Initializing...');  this._setRunButtonEnabled(false);  this._clearProblemsList();  this.updateProgressIndicators();  this.setStatus('Done initializing');}jsUnitTestManager.prototype.finalize = function (){  this._setRunButtonEnabled(true);}jsUnitTestManager.prototype._setRunButtonEnabled = function (b){  this.runButton.disabled = !b;}jsUnitTestManager.prototype.getTestFileName = function () {  var rawEnteredFileName = this.testFileName.value;  var result             = rawEnteredFileName;  while (result.indexOf('\\') != -1)    result = result.replace('\\', '/');  return result;}jsUnitTestManager.prototype.resolveUserEnteredTestFileName = function (rawText) {  var userEnteredTestFileName = top.testManager.getTestFileName();    // only test for file:// since Opera uses a different format  if (userEnteredTestFileName.indexOf('http://') == 0 || userEnteredTestFileName.indexOf('https://') == 0 || userEnteredTestFileName.indexOf('file://') == 0)    return userEnteredTestFileName;      return getTestFileProtocol() + this.getTestFileName();}function getTestFileProtocol(){  return getDocumentProtocol();}function getDocumentProtocol() {  var protocol = top.document.location.protocol;      if (protocol == "file:")     return "file:///";  if (protocol == "http:")     return "http://";      if (protocol == 'https:')     return 'https://';          if (protocol == "chrome:")     return "chrome://";  return null;}function isBeingRunOverHTTP() {	return getDocumentProtocol()=="http://";}   function getWebserver() {	if (isBeingRunOverHTTP()) {		var myUrl = location.href;		var myUrlWithProtocolStripped = myUrl.substring(myUrl.indexOf("/") + 2);		return myUrlWithProtocolStripped.substring(0, myUrlWithProtocolStripped.indexOf("/"));	}	return null;}// the functions push(anArray, anObject) and pop(anArray) // exist because the JavaScript Array.push(anObject) and Array.pop() // functions are not available in IE 5.0function push(anArray, anObject) {  anArray[anArray.length]=anObject;}function pop(anArray) {  if (anArray.length>=1) {    delete anArray[anArray.length - 1];    anArray.length--;  }}if (xbDEBUG.on){  xbDebugTraceObject('window', 'jsUnitTestManager');  xbDebugTraceFunction('window', 'getTestFileProtocol');  xbDebugTraceFunction('window', 'getDocumentProtocol');}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产亚洲a| 婷婷夜色潮精品综合在线| 在线观看视频一区二区欧美日韩| 日韩精品成人一区二区三区| 中文欧美字幕免费| 欧美高清激情brazzers| av电影在线观看一区| 精品中文字幕一区二区小辣椒| 国产精品国产三级国产普通话三级| 欧美日韩精品欧美日韩精品| 风间由美性色一区二区三区| 亚洲国产va精品久久久不卡综合| 国产亚洲一区二区三区四区| 7777女厕盗摄久久久| 99视频一区二区三区| 国产一区二区日韩精品| 天天综合日日夜夜精品| 亚洲欧美色综合| 欧美经典一区二区| 久久久噜噜噜久噜久久综合| 91精品国产福利| 欧美日韩亚洲另类| 在线视频国内自拍亚洲视频| 99久久精品国产麻豆演员表| 国产成人精品影视| 狠狠色狠狠色综合系列| 免费美女久久99| 日韩激情av在线| 亚洲一区在线观看视频| 中文字幕中文在线不卡住| 欧美国产精品专区| 欧美极品美女视频| 国产亚洲一二三区| 国产午夜亚洲精品不卡| 国产亚洲精品aa午夜观看| 精品国产免费一区二区三区四区| 欧美日韩激情一区二区三区| 在线免费一区三区| 欧美日韩精品免费观看视频 | 99久久精品99国产精品| 成人免费高清在线| av在线免费不卡| 成人高清伦理免费影院在线观看| 国产91精品免费| 成人免费毛片高清视频| www.在线欧美| 色噜噜狠狠色综合欧洲selulu| 99国产精品国产精品久久| 97国产一区二区| 欧美性一级生活| 欧美一级午夜免费电影| 欧美电影免费观看高清完整版在| 日韩欧美久久一区| 国产日产精品1区| 国产精品久久久一区麻豆最新章节| 国产欧美一区视频| 一区精品在线播放| 亚洲一区二区美女| 免费人成在线不卡| 国产东北露脸精品视频| 99久久免费精品高清特色大片| 色综合天天综合网国产成人综合天| 91视频观看视频| 欧美日韩大陆一区二区| 精品少妇一区二区三区视频免付费| 久久久美女艺术照精彩视频福利播放| 国产精品热久久久久夜色精品三区| 中文字幕一区二区三区不卡在线 | 亚洲欧美在线观看| 亚洲在线一区二区三区| 久久电影网站中文字幕| 国产91精品免费| 欧美日韩免费高清一区色橹橹| 日韩一区二区三区电影| 国产精品久久看| 亚洲成人资源在线| 国产一区福利在线| 91激情五月电影| 精品久久久久久亚洲综合网| 中文欧美字幕免费| 天堂久久一区二区三区| 国产999精品久久| 欧美日韩一区中文字幕| 国产欧美日韩激情| 日韩精品福利网| 91在线免费播放| 日韩一级片在线播放| 亚洲欧洲国产日本综合| 久久99精品久久只有精品| 色婷婷av一区| 欧美精品一区二区三| 亚洲精品国产a| 国产成人精品一区二| 欧美日韩免费视频| 中文字幕亚洲不卡| 久国产精品韩国三级视频| 色婷婷av一区二区三区大白胸| 欧美精品一区二区三区蜜臀| 亚洲一区欧美一区| 国产+成+人+亚洲欧洲自线| 91精品国产黑色紧身裤美女| 亚洲欧美日本韩国| 国产精品99久久久久久宅男| 欧美日韩黄色一区二区| 亚洲人成在线播放网站岛国| 国产一二精品视频| 666欧美在线视频| 亚洲欧美aⅴ...| 国产大陆a不卡| 欧美电影免费观看完整版| 亚洲国产乱码最新视频| 91女厕偷拍女厕偷拍高清| 久久精品一区二区三区不卡| 美女看a上一区| 欧美人妖巨大在线| 亚洲制服丝袜av| 色综合一个色综合| 日韩美女精品在线| 成人久久视频在线观看| 久久久影视传媒| 国内精品视频一区二区三区八戒| 欧美日韩视频第一区| 亚洲制服丝袜av| 在线看国产一区二区| 亚洲免费观看高清完整版在线观看| 国产v日产∨综合v精品视频| 精品美女一区二区| 久久99精品久久久| 日韩精品一区二区三区视频在线观看 | 7777精品伊人久久久大香线蕉的 | 在线中文字幕一区二区| 亚洲婷婷国产精品电影人久久| 国产高清久久久久| 久久久久久夜精品精品免费| 激情成人综合网| 欧美va亚洲va在线观看蝴蝶网| 男男视频亚洲欧美| 日韩一区二区不卡| 久久精品国产精品亚洲综合| 精品成人一区二区三区| 久久99久久精品| 久久一区二区三区四区| 国产剧情一区二区| 亚洲国产精品成人综合 | 国产精品一区在线观看你懂的| 精品国产三级电影在线观看| 国内久久精品视频| 欧美国产精品一区| 91在线视频免费观看| 亚洲制服丝袜av| 91精品国产91久久久久久最新毛片 | 亚洲综合小说图片| 欧美日韩三级一区| 精品影院一区二区久久久| 久久只精品国产| 成人app下载| 一区二区欧美在线观看| 欧美日韩国产高清一区| 美女看a上一区| 中文字幕成人网| 欧美视频一区二区三区在线观看| 午夜精品福利一区二区三区av | 久久久亚洲国产美女国产盗摄| 国产v日产∨综合v精品视频| 亚洲老司机在线| 91精品久久久久久蜜臀| 国产精品一区二区在线观看不卡| 国产女人18水真多18精品一级做 | 国产精品一区二区久激情瑜伽 | 欧美伦理电影网| 狠狠网亚洲精品| 亚洲精品免费在线观看| 欧美精品三级在线观看| 国产在线播放一区三区四| 亚洲男帅同性gay1069| 制服丝袜亚洲播放| 成人免费视频免费观看| 亚洲成人精品影院| 欧美极品另类videosde| 欧美日产在线观看| 风间由美性色一区二区三区| 五月激情综合色| 国产精品久线观看视频| 欧美精品v国产精品v日韩精品 | 欧美亚洲国产一区在线观看网站 | 一区二区三区四区亚洲| 日韩一区二区三区免费看| caoporm超碰国产精品| 日韩国产精品久久久| 综合分类小说区另类春色亚洲小说欧美| 欧美日韩国产精选| av中文字幕不卡| 黑人巨大精品欧美黑白配亚洲| 一区二区三区在线观看动漫| 久久久五月婷婷| 日韩欧美国产精品一区| 欧洲日韩一区二区三区| 国产91在线|亚洲| 久久精品国产亚洲一区二区三区| 亚洲日本va在线观看|