Commit a56d646b authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Рефакторинг офиса.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@46984 954022d7-b5bf-4e40-9824-e11837661b57
parent 6d07ab6f
1.
- gcc, http://closure-compiler.googlecode.com/files/compiler-latest.zip
- , C:\Program Files (x86)\Google\Closure-compiler
- YUICompressor, http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.7.zip
- , C:\Program Files (x86)\Yahoo\yuicompressor-2.4.7\build\
- CLASSPATH, : C:\Program Files (x86)\Google\Closure-compiler\compiler.jar; C:\Program Files (x86)\Yahoo\yuicompressor-2.4.7\build\yuicompressor-2.4.7.jar
2. svn-.
- TortoiseSVN . TortoiseSVN/bin svn.exe, .
- TortoiseSVN/bin PATH
3. .
- heckout svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebExcel/.build
( E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebExcel\.build)
- , , , .
:
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebExcel (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebExcel)
-
-
- svn://fileserver/activex/ASC/Redist/WEB/sdk/OfficeWebExcel (E:\Subversion\ASC\Redist\WEB\sdk\OfficeWebExcel)
- commit_new_sdk_all.bat
4.
- , C:\Hg
- , build.bat MENU_FOLDER
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebExcel (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebExcel)
- build.bat
:
- .
- .
-
../../OfficeWebWord/Build/deploy (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord\Build)
- ( 3rdparty).
- :
deploy/apps/api/documents/index.html?doctype=text
- :
deploy/apps/api/documents/index.html?doctype=text&type=mobile
- :
deploy/apps/api/documents/index.html?doctype=spreadsheet
- :
deploy/apps/api/documents/index.html?doctype=spreadsheet&type=mobile
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebExcel/.build/Log (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebExcel\.build\Log)
// :
1. build_test.bat
2. ..\OfficeWebWord\Build\deploy\sdk\OfficeWebExcel\SpreadsheetTestMenu.html
"sdk-all.js" .
\ No newline at end of file
function GetSelectedCellInfo()
{
return Asc.editor.xll111l11Ext();
}
function getText()
{
return GetSelectedCellInfo().x1l1111ll()
}
function getName()
{
return GetSelectedCellInfo().x11l1ll1l()
}
function getHAlign()
{
return GetSelectedCellInfo().x1l111l11()
}
function getVAlign()
{
return GetSelectedCellInfo().x1l111l1l()
}
function getMerge()
{
return GetSelectedCellInfo().x1l111ll1().x11l1l111()
}
function getShrinkToFit()
{
return GetSelectedCellInfo().x1l111ll1().x11l1l11l()
}
function getWrapText()
{
return GetSelectedCellInfo().x1l111ll1().x11l1l1l1()
}
function getFontName()
{
return GetSelectedCellInfo().x1l111lll().x11l1ll1l()
}
function getFontSize()
{
return GetSelectedCellInfo().x1l111lll().x11l1lll1()
}
function getBold()
{
return GetSelectedCellInfo().x1l111lll().x11l1llll()
}
function getItalic()
{
return GetSelectedCellInfo().x1l111lll().x11ll1111()
}
function getUnderline()
{
return GetSelectedCellInfo().x1l111lll().x11ll111l()
}
function getStrikeout()
{
return GetSelectedCellInfo().x1l111lll().getStrikeout()
}
function getSubscript()
{
return GetSelectedCellInfo().x1l111lll().x11ll11ll()
}
function getSuperscript()
{
return GetSelectedCellInfo().x1l111lll().x11ll1l11()
}
function getFontColor()
{
return GetSelectedCellInfo().x1l111lll().x11ll1l1l()
}
function getFillColor()
{
return GetSelectedCellInfo().x1l11l111().x11ll1l1l()
}
function getLeftBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11lll1ll()
}
function getRightBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11llll1l()
}
function getTopBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11llll11()
}
function getBottomBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11lllll1()
}
function getDiagDownBorder()
{
return GetSelectedCellInfo().x1l11l11l().x11llllll()
}
function getDiagUpBorder()
{
return GetSelectedCellInfo().x1l11l11l().x1l111111()
}
function getBorderWidth()
{
return x11lll111()
}
function getBorderStyle()
{
return x11lll11l()
}
function getBorderColor()
{
return x11ll1l1l()
}
function getFormula()
{
return GetSelectedCellInfo().x1l1111l1()
}
function getInnerText()
{
return GetSelectedCellInfo().x1l11l1l1()
}
function getNumFormat()
{
return GetSelectedCellInfo().x1l11l1ll()
}
\ No newline at end of file
x11111111
x1111111l
x111111l1
x111111ll
x11111l11
x11111l1l
x11111ll1
x11111lll
x1111l111
x1111l11l
x1111l1l1
x1111l1ll
x1111ll11
x1111ll1l
x1111lll1
x1111llll
x111l1111
x111l111l
x111l11l1
x111l11ll
x111l1l11
x111l1l1l
x111l1ll1
x111l1lll
x111ll111
x111ll11l
x111ll1l1
x111ll1ll
x111lll11
x111lll1l
x111llll1
x111lllll
x11l11111
x11l1111l
x11l111l1
x11l111ll
x11l11l11
x11l11l1l
x11l11ll1
x11l11lll
x11l1l111
x11l1l11l
x11l1l1l1
x11l1l1ll
x11l1ll11
x11l1ll1l
x11l1lll1
x11l1llll
x11ll1111
x11ll111l
x11ll11l1
x11ll11ll
x11ll1l11
x11ll1l1l
x11ll1ll1
x11ll1lll
x11lll111
x11lll11l
x11lll1l1
x11lll1ll
x11llll11
x11llll1l
x11lllll1
x11llllll
x1l111111
x1l11111l
x1l1111l1
x1l1111ll
x1l111l11
x1l111l1l
x1l111ll1
x1l111lll
x1l11l111
x1l11l11l
x1l11l1l1
x1l11l1ll
x1l11ll11
x1l11ll1l
x1l11lll1
x1l11llll
x1l1l1111
x1l1l111l
x1l1l11l1
x1l1l11ll
x1l1l1l11
x1l1l1l1l
x1l1l1ll1
x1l1l1lll
x1l1ll111
x1l1ll11l
x1l1ll1l1
x1l1ll1ll
x1l1lll11
x1l1lll1l
x1l1llll1
x1l1lllll
x1ll11111
x1ll1111l
x1ll111l1
x1ll111ll
x1ll11l11
x1ll11l1l
x1ll11ll1
x1ll11lll
x1ll1l111
x1ll1l11l
x1ll1l1l1
x1ll1l1ll
x1ll1ll11
x1ll1ll1l
x1ll1lll1
x1ll1llll
x1lll1111
x1lll111l
x1lll11l1
x1lll11ll
x1lll1l11
x1lll1l1l
x1lll1ll1
x1lll1lll
x1llll111
x1llll11l
x1llll1l1
x1llll1ll
x1lllll11
x1lllll1l
x1llllll1
x1lllllll
xl1111111
xl111111l
xl11111l1
xl11111ll
xl1111l11
xl1111l1l
xl1111ll1
xl1111lll
xl111l111
xl111l11l
xl111l1l1
xl111l1ll
xl111ll11
xl111ll1l
xl111lll1
xl111llll
xl11l1111
xl11l111l
xl11l11l1
xl11l11ll
xl11l1l11
xl11l1l1l
xl11l1ll1
xl11l1lll
xl11ll111
xl11ll11l
xl11ll1l1
xl11ll1ll
xl11lll11
xl11lll1l
xl11llll1
xl11lllll
xl1l11111
xl1l1111l
xl1l111l1
xl1l111ll
xl1l11l11
xl1l11l1l
xl1l11ll1
xl1l11lll
xl1l1l111
xl1l1l11l
xl1l1l1l1
xl1l1l1ll
xl1l1ll11
xl1l1ll1l
xl1l1lll1
xl1l1llll
xl1ll1111
xl1ll111l
xl1ll11l1
xl1ll11ll
xl1ll1l11
xl1ll1l1l
xl1ll1ll1
xl1ll1lll
xl1lll111
xl1lll11l
xl1lll1l1
xl1lll1ll
xl1llll11
xl1llll1l
xl1lllll1
xl1llllll
xll111111
xll11111l
xll1111l1
xll1111ll
xll111l11
xll111l1l
xll111ll1
xll111lll
xll11l111
xll11l11l
xll11l1l1
xll11l1ll
xll11ll11
xll11ll1l
xll11lll1
xll11llll
xll1l1111
xll1l111l
xll1l11l1
xll1l11ll
xll1l1l11
xll1l1l1l
xll1l1ll1
xll1l1lll
xll1ll111
xll1ll11l
xll1ll1l1
xll1ll1ll
xll1lll11
xll1lll1l
xll1llll1
xll1lllll
xlll11111
xlll1111l
xlll111l1
xlll111ll
xlll11l11
asc_CChart
asc_getType
asc_setType
asc_getSubType
asc_setSubType
asc_getTitle
asc_setTitle
asc_getSubTitle
asc_setSubTitle
asc_getShowValueFlag
asc_setShowValueFlag
asc_getRange
asc_setRange
asc_getXAxis
asc_setXAxis
asc_getYAxis
asc_setYAxis
asc_getLegend
asc_setLegend
asc_CChartRange
asc_getInterval
asc_setInterval
asc_getRowsFlag
asc_setRowsFlag
asc_getColumnsFlag
asc_setColumnsFlag
asc_CChartAxis
asc_getShowFlag
asc_setShowFlag
asc_getGridFlag
asc_setGridFlag
asc_CChartLegend
asc_getPosition
asc_setPosition
asc_getOverlayFlag
asc_setOverlayFlag
asc_onStartAction
asc_onEndAction
asc_OnFormulaError
asc_CCellFlag
asc_getMerge
asc_getShrinkToFit
asc_getWrapText
asc_getSelectionType
asc_CFont
asc_getName
asc_getSize
asc_getBold
asc_getItalic
asc_getUnderline
asc_getStrikeout
asc_getSubscript
asc_getSuperscript
asc_getColor
asc_CFill
asc_CBorder
asc_getWidth
asc_getStyle
asc_CBorders
asc_getLeft
asc_getTop
asc_getRight
asc_getBottom
asc_getDiagDown
asc_getDiagUp
asc_CCellInfo
asc_getFormula
asc_getText
asc_getHorAlign
asc_getVertAlign
asc_getFlags
asc_getFont
asc_getFill
asc_getBorders
asc_getInnerText
asc_getNumFormat
asc_getHyperlink
asc_getX
asc_getY
asc_getHeight
asc_CAdvancedOptions
asc_getOptionId
asc_getOptions
asc_CCSVOptions
asc_getCodePages
asc_CCSVAdvancedOptions
asc_getDelimiter
asc_setDelimiter
asc_getCodePage
asc_setCodePage
asc_CCodePage
asc_getCodePageName
asc_setCodePageName
asc_setText
asc_CDelimiter
asc_getDelimiterName
asc_setDelimiterName
asc_getFontId
asc_getFontName
asc_getFontThumbnail
asc_getFontType
asc_CFormulaGroup
asc_getGroupName
asc_getFormulasArray
asc_addFormulaElement
asc_CFormula
asc_getArguments
asc_CHandlersList
asc_CEventsController
asc_onActiveSheetChanged
asc_onCanUndoChanged
asc_onCanRedoChanged
asc_onDocumentModifiedChanged
asc_onCellTextChanged
asc_onSelectionChanged
asc_onError
asc_onHyperlinkClick
asc_onMouseMove
asc_onShowCharDialog
asc_onEditCell
asc_onZoomChanged
asc_onAdvancedOptions
asc_onSaveUrl
asc_onSheetsChanged
asc_onInitEditorFonts
asc_onOpenDocumentProgress
asc_onParticipantsChanged
asc_onAuthParticipantsChanged
asc_onCoAuthoringChatReceiveMessage
asc_onConnectionStateChanged
asc_Init
asc_LoadDocument
asc_DownloadAs
asc_Save
asc_Print
asc_Resize
asc_Copy
asc_Paste
asc_Cut
asc_Undo
asc_Redo
asc_getDocumentName
asc_getDocumentFormat
asc_isDocumentModified
asc_setMobileVersion
asc_setViewerMode
asc_setAdvancedOptions
asc_registerCallback
asc_unregisterCallback
asc_getController
asc_getWorksheetsCount
asc_getWorksheetName
asc_getActiveWorksheetIndex
asc_isWorksheetHidden
asc_getHiddenWorksheets
asc_showWorksheet
asc_showActiveWorksheet
asc_hideWorksheet
asc_renameWorksheet
asc_addWorksheet
asc_insertWorksheet
asc_deleteWorksheet
asc_moveWorksheet
asc_copyWorksheet
asc_cleanSelection
asc_getZoom
asc_setZoom
asc_enableKeyEvents
asc_findText
asc_openCellEditor
asc_closeCellEditor
asc_getColumnWidth
asc_setColumnWidth
asc_insertColumnsBefore
asc_insertColumnsAfter
asc_deleteColumns
asc_showColumns
asc_hideColumns
asc_getRowHeight
asc_setRowHeight
asc_insertRowsBefore
asc_insertRowsAfter
asc_deleteRows
asc_showRows
asc_hideRows
asc_insertCells
asc_deleteCells
asc_mergeCells
asc_sortCells
asc_emptyCells
asc_showDrawingObjects
asc_getChartObject
asc_addChartDrawingObject
asc_editChartDrawingObject
asc_addImageDrawingObject
asc_showImageFileDialog
asc_getCellInfo
asc_getCellInfoExt
asc_getActiveCellCoord
asc_setCellFontName
asc_setCellFontSize
asc_setCellBold
asc_setCellItalic
asc_setCellUnderline
asc_setCellStrikeout
asc_setCellSubscript
asc_setCellSuperscript
asc_setCellAlign
asc_setCellVertAlign
asc_setCellTextWrap
asc_setCellTextShrink
asc_setCellTextColor
asc_setCellBackgroundColor
asc_setCellBorders
asc_setCellValue
asc_setCellFormat
asc_setCellFinancialFormat
asc_setCellPercentFormat
asc_setCellDelimitedFormat
asc_increaseCellDigitNumbers
asc_decreaseCellDigitNumbers
asc_selectFunction
asc_insertHyperlink
asc_insertFormula
asc_getFormulasInfo
asc_coAuthoringChatSendMessage
asc_coAuthoringGetUsers
asc_coAuthoringChatGetMessages
asc_testPrintPDF
This diff is collapsed.
This diff is collapsed.
function GetSelectedCellInfo()
{
return Asc.editor.asc_getCellInfo(true);
}
function getText()
{
return GetSelectedCellInfo().asc_getText()
}
function getName()
{
return GetSelectedCellInfo().asc_getName()
}
function getHAlign()
{
return GetSelectedCellInfo().asc_getHorAlign()
}
function getVAlign()
{
return GetSelectedCellInfo().asc_getVertAlign()
}
function getMerge()
{
return GetSelectedCellInfo().asc_getFlags().asc_getMerge()
}
function getShrinkToFit()
{
return GetSelectedCellInfo().asc_getFlags().asc_getShrinkToFit()
}
function getWrapText()
{
return GetSelectedCellInfo().asc_getFlags().asc_getWrapText()
}
function getFontName()
{
return GetSelectedCellInfo().asc_getFont().asc_getName()
}
function getFontSize()
{
return GetSelectedCellInfo().asc_getFont().asc_getSize()
}
function getBold()
{
return GetSelectedCellInfo().asc_getFont().asc_getBold()
}
function getItalic()
{
return GetSelectedCellInfo().asc_getFont().asc_getItalic()
}
function getUnderline()
{
return GetSelectedCellInfo().asc_getFont().asc_getUnderline()
}
function getStrikeout()
{
return GetSelectedCellInfo().asc_getFont().getStrikeout()
}
function getSubscript()
{
return GetSelectedCellInfo().asc_getFont().asc_getSubscript()
}
function getSuperscript()
{
return GetSelectedCellInfo().asc_getFont().asc_getSuperscript()
}
function getFontColor()
{
return GetSelectedCellInfo().asc_getFont().asc_getColor()
}
function getFillColor()
{
return GetSelectedCellInfo().asc_getFill().asc_getColor()
}
function getLeftBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getLeft()
}
function getRightBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getRight()
}
function getTopBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getTop()
}
function getBottomBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getBottom()
}
function getDiagDownBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getDiagDown()
}
function getDiagUpBorder()
{
return GetSelectedCellInfo().asc_getBorders().asc_getDiagUp()
}
function getBorderWidth()
{
return asc_getWidth()
}
function getBorderStyle()
{
return asc_getStyle()
}
function getBorderColor()
{
return asc_getColor()
}
function getFormula()
{
return GetSelectedCellInfo().asc_getFormula()
}
function getInnerText()
{
return GetSelectedCellInfo().asc_getInnerText()
}
function getNumFormat()
{
return GetSelectedCellInfo().asc_getNumFormat()
}
\ No newline at end of file
SET TABLE_ENGINE=..
SET DEPLOY_FOLDER=..\..\OfficeWebWord\Build\deploy
SET OUTPUT_FOLDER=%DEPLOY_FOLDER%\sdk\OfficeWebExcel
SET OUTPUT_SCRIPT_NAME=sdk-all.js
SET RESULT_SCRIPT=%OUTPUT_FOLDER%\%OUTPUT_SCRIPT_NAME%
ECHO Make output folder: %OUTPUT_FOLDER%
MKDIR %OUTPUT_FOLDER%
ECHO Copy resources
XCOPY "%TABLE_ENGINE%\css\*.css" "%OUTPUT_FOLDER%\css\" /Y /I /Q
SET BUILD_LOG_DIR=Log
call build_sdk_all.bat %RESULT_SCRIPT% %BUILD_LOG_DIR%
SET MENU_FOLDER=C:\Hg
CALL %MENU_FOLDER%\Build\build-se.bat
XCOPY /S %MENU_FOLDER%\deploy\api %DEPLOY_FOLDER%\apps\api\ /Y
XCOPY /S %MENU_FOLDER%\deploy\spreadsheeteditor %DEPLOY_FOLDER%\apps\spreadsheeteditor\ /Y
SET MENU_DEPLOY_FOLDER=%DEPLOY_FOLDER%\apps
SET EDITOR_MENU=%MENU_DEPLOY_FOLDER%\spreadsheeteditor
set EDITOR_MENU_JS_FILE=%EDITOR_MENU%\main\app-all.js
set TOUCH_EDITOR_MENU_JS_FILE=%EDITOR_MENU%\mobile\app-all.js
set API_TEST_JS_FILE=api_functions.js
set OUTPUT_API_TEST_JS_FILE=%BUILD_LOG_DIR%\%API_TEST_JS_FILE%
ECHO ON
ECHO Obfuscate callback name
SET OUTVAL_MAP_FILE=%BUILD_LOG_DIR%\out_val.map
SET OUTOBF_MAP_FILE=%BUILD_LOG_DIR%\out_obf.map
rem asc_\w*
ObfuscateStrings.exe ^
-api "%RESULT_SCRIPT%" ^
-pat "asc_\w+" -exp se -use-for-name -outmap "%OUTVAL_MAP_FILE%" "%OUTOBF_MAP_FILE%" ^
-apply "%RESULT_SCRIPT%" "%RESULT_SCRIPT%" ^
-apply "%EDITOR_MENU_JS_FILE%" "%EDITOR_MENU_JS_FILE%" ^
-apply "%TOUCH_EDITOR_MENU_JS_FILE%" "%TOUCH_EDITOR_MENU_JS_FILE%" ^
-apply "%API_TEST_JS_FILE%" "%OUTPUT_API_TEST_JS_FILE%"
pause
\ No newline at end of file
@ECHO off
SET BUILD_DIR=%CD%
SET OUTPUT_DIR=%BUILD_DIR%
SET LOG_DIR=%BUILD_DIR%\Log
SET OUTPUT_SCRIPT_NAME=sdk-all.js
SET SOURCE_MAP_NAME=SourceMap.js
call check_google_cc.cmd
SET GOOGLE_CC_LEVEL=ADVANCED_OPTIMIZATIONS
if NOT "%1"=="" (
SET OUTPUT_DIR=%~dp1
SET OUTPUT_SCRIPT_NAME=%~nx1
)
if NOT "%2"=="" SET LOG_DIR=%~f2
if NOT "%3"=="" SET GOOGLE_CC_LEVEL=%3
cd ..
SET TABLE_ENGINE=.
SET FONT_ENGINE=../OfficeWebWord
SET COMMON_FOLDER=../OfficeWebCommon
SET CHARTS_ENGINE=%COMMON_FOLDER%/Charts/libraries
SET VARIABLE_MAP_FILE=%LOG_DIR%\variable.map
SET PROPERTY_MAP_FILE=%LOG_DIR%\property.map
SET SRC_FONT_ENGINE=^
"%FONT_ENGINE%\FontsFreeType\font_engine.js" ^
"%FONT_ENGINE%\FontsFreeType\FontFile.js" ^
"%FONT_ENGINE%\FontsFreeType\FontManager.js" ^
"%FONT_ENGINE%\WebWord\Drawing\Externals.js" ^
"%FONT_ENGINE%\WebWord\Drawing\Metafile.js" ^
"%FONT_ENGINE%\WebWord\Drawing\AllFonts.js" ^
"%FONT_ENGINE%\WebWord\Drawing\GlobalLoaders.js" ^
"%FONT_ENGINE%\FontsFreeType\FontExport.js"
SET EDITOR_APIDEFINE_FILE=%TABLE_ENGINE%\apiDefines.js
SET OUTPUT_APIDEFINE_FILE=%EDITOR_APIDEFINE_FILE%.tmp
SET SRC_TABLE_EGINE=^
"%COMMON_FOLDER%\docscoapicommon.js" ^
"%COMMON_FOLDER%\docscoapi.js" ^
"%COMMON_FOLDER%\downloaderfiles.js" ^
"%TABLE_ENGINE%\offlinedocs\test-workbook9\Editor.js" ^
"%TABLE_ENGINE%\utils\utils.js" ^
"%TABLE_ENGINE%\clipboard.js" ^
"%TABLE_ENGINE%\charts.js" ^
"%TABLE_ENGINE%\graphics\DrawingContext.js" ^
"%TABLE_ENGINE%\graphics\pdfprinter.js" ^
"%TABLE_ENGINE%\model\CollaborativeEditing.js" ^
"%TABLE_ENGINE%\model\parserFormula.js" ^
"%TABLE_ENGINE%\model\DrawingObjects.js" ^
"%TABLE_ENGINE%\model\NumFormat.js" ^
"%TABLE_ENGINE%\model\Serialize.js" ^
"%TABLE_ENGINE%\model\WorkbookElems.js" ^
"%TABLE_ENGINE%\model\Workbook.js" ^
"%TABLE_ENGINE%\model\CellInfo.js" ^
"%TABLE_ENGINE%\model\AdvancedOptions.js" ^
"%TABLE_ENGINE%\model\History.js" ^
"%TABLE_ENGINE%\view\StringRender.js" ^
"%TABLE_ENGINE%\view\CellTextRender.js" ^
"%TABLE_ENGINE%\view\CellEditorView.js" ^
"%TABLE_ENGINE%\view\WorksheetView.js" ^
"%TABLE_ENGINE%\view\HandlerList.js" ^
"%TABLE_ENGINE%\view\EventsController.js" ^
"%TABLE_ENGINE%\view\WorkbookView.js" ^
"%TABLE_ENGINE%\view\scroll.js" ^
"%EDITOR_APIDEFINE_FILE%" ^
"%TABLE_ENGINE%\api.js"
SET SRC_CHARTS_EGINE=^
"%CHARTS_ENGINE%\OfficeExcel.common.core.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.annotate.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.context.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.effects.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.key.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.resizing.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.tooltips.js" ^
"%CHARTS_ENGINE%\OfficeExcel.common.zoom.js" ^
"%CHARTS_ENGINE%\OfficeExcel.bar.js" ^
"%CHARTS_ENGINE%\OfficeExcel.bipolar.js" ^
"%CHARTS_ENGINE%\OfficeExcel.gantt.js" ^
"%CHARTS_ENGINE%\OfficeExcel.hbar.js" ^
"%CHARTS_ENGINE%\OfficeExcel.line.js" ^
"%CHARTS_ENGINE%\OfficeExcel.pie.js" ^
"%CHARTS_ENGINE%\OfficeExcel.radar.js" ^
"%CHARTS_ENGINE%\OfficeExcel.rose.js" ^
"%CHARTS_ENGINE%\OfficeExcel.rscatter.js" ^
"%CHARTS_ENGINE%\OfficeExcel.scatter.js" ^
"%CHARTS_ENGINE%\OfficeExcel.waterfall.js" ^
"%CHARTS_ENGINE%\OfficeExcel.chartProperties.js" ^
"%CHARTS_ENGINE%\hsv.js" ^
"%CHARTS_ENGINE%\rgbcolor.js"
SET SRC_FILE="%COMMON_FOLDER%\License.js" %SRC_FONT_ENGINE% %SRC_TABLE_EGINE% %SRC_CHARTS_EGINE%
ECHO ON
rem --formatting PRETTY_PRINT ^
java %GOOGLE_CC% ^
--version ^
--warning_level QUIET ^
--compilation_level %GOOGLE_CC_LEVEL% ^
--externs "%TABLE_ENGINE%\jquery\jquery-1.7.1.js" ^
--externs "%TABLE_ENGINE%\jquery\jquery.mousewheel-3.0.6.js" ^
--externs "%COMMON_FOLDER%\3rdparty\XRegExp\xregexp-all-min.js" ^
--js %SRC_FILE% ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--variable_map_output_file "%VARIABLE_MAP_FILE%" ^
--property_map_output_file "%PROPERTY_MAP_FILE%" ^
--create_source_map "%OUTPUT_SCRIPT_NAME%.map" ^
--source_map_format=V3
@if NOT "%ERRORLEVEL%"=="0" goto error
java %GOOGLE_CC% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js "%EDITOR_APIDEFINE_FILE%" ^
--js_output_file "%OUTPUT_APIDEFINE_FILE%"
@if NOT "%ERRORLEVEL%"=="0" goto error
ECHO //@ sourceMappingURL=http://localhost:8080/sdk/OfficeWebExcel/%OUTPUT_SCRIPT_NAME%.map>"%SOURCE_MAP_NAME%"
COPY /Y /B "%OUTPUT_SCRIPT_NAME%"+"%OUTPUT_APIDEFINE_FILE%"+"%SOURCE_MAP_NAME%" "%OUTPUT_SCRIPT_NAME%"
MOVE /Y "%OUTPUT_SCRIPT_NAME%" "%OUTPUT_DIR%"
COPY /Y "%OUTPUT_SCRIPT_NAME%.map" "%OUTPUT_DIR%"
DEL /Q "%OUTPUT_APIDEFINE_FILE%"
DEL /Q "%SOURCE_MAP_NAME%"
@ECHO off
cd "%BUILD_DIR%"
exit /b 0
:error
@exit /b 1
SET TABLE_ENGINE=..
SET DEPLOY_FOLDER=..\..\OfficeWebWord\Build\deploy
SET OUTPUT_FOLDER=%DEPLOY_FOLDER%\sdk\OfficeWebExcel_menu
SET OUTPUT_SCRIPT_NAME=%OUTPUT_FOLDER%\sdk-all.js
ECHO Make output folder: %OUTPUT_FOLDER%
MKDIR %OUTPUT_FOLDER%
ECHO Copy resources
XCOPY "%TABLE_ENGINE%\css\*.*" "%OUTPUT_FOLDER%\css\" /Y /I /Q /E
XCOPY "%TABLE_ENGINE%\menu\*.*" "%OUTPUT_FOLDER%\menu\" /Y /I /Q /E
XCOPY "%TABLE_ENGINE%\jquery\*.*" "%OUTPUT_FOLDER%\jquery\" /Y /I /Q /E
XCOPY "%TABLE_ENGINE%\SpreadsheetTestMenu.deploy" "%OUTPUT_FOLDER%\SpreadsheetTestMenu.html" /Y /I /Q
SET BUIL_LOG_DIR=Log
call build_sdk_all.bat %OUTPUT_SCRIPT_NAME% %BUIL_LOG_DIR% SIMPLE_OPTIMIZATIONS
pause
\ No newline at end of file
@echo off
set GOOGLE_CC=com.google.javascript.jscomp.CommandLineRunner
java %GOOGLE_CC% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" exit /b 0
:read_vars
call config_read_vars.cmd
if NOT "%ERRORLEVEL%"=="0" (
echo.
echo Error: Can not read config file
exit /b 1
)
if NOT DEFINED GOOGLE_CC_PATH (
call config_set_var.cmd GOOGLE_CC_PATH "%CD%"
goto enter_path
)
java -cp "%GOOGLE_CC_PATH%" %GOOGLE_CC% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" goto setup_cp
:enter_path
echo.
echo Please enter correct path to Google Closure Complier (GOOGLE_CC_PATH)
start "" /wait notepad "%CFG_FILE%"
goto read_vars
:setup_cp
if "%CLASSPATH%"=="" (set CLASSPATH=%GOOGLE_CC_PATH%) else (set CLASSPATH=%CLASSPATH%;%GOOGLE_CC_PATH%)
exit /b 0
@echo off
if NOT DEFINED STABLE_API_PATH set STABLE_API_PATH=..\..\..\..\..\ASC\Redist\WEB\sdk\OfficeWebExcel
if EXIST "%STABLE_API_PATH%\api.js" exit /b 0
set STABLE_API_PATH=
:read_vars
call config_read_vars.cmd
if NOT "%ERRORLEVEL%"=="0" (
echo.
echo Error: Can not read config file
exit /b 1
)
if NOT DEFINED STABLE_API_PATH (
call config_set_var.cmd STABLE_API_PATH "%CD%"
goto enter_path
)
if EXIST "%STABLE_API_PATH%\api.js" exit /b 0
:enter_path
echo.
echo Please enter correct path to Stable API folder (STABLE_API_PATH)
start "" /wait notepad "%CFG_FILE%"
goto read_vars
@echo off
svn help >nul 2>&1
if errorlevel 1 (
echo.
echo Can not find subversion command-line client
exit /b 1
)
exit /b 0
@echo off
if NOT "%~1"=="" SET SIMULATE=1
call check_stable_api.cmd
call check_svn.cmd || goto error
SET STABLE_SDK_JS=%STABLE_API_PATH%\sdk-all.js
SET STABLE_SDK_LOG_FOLDER=Log
SET STABLE_TRDPARTY_PATH=%STABLE_API_PATH%\..\..\3rdparty
SET SDK_SOURCE_FOLDER=..
SET SDK_TRDPARTY_PATH=%SDK_SOURCE_FOLDER%\..\OfficeWebCommon\3rdparty
SET COMMIT_MESSAGE_FILE=info.log
cd /D "%~dp0" || exit /b 1
echo.
echo ----------------------------------------
echo Update STABLE repository
echo ----------------------------------------
svn update %STABLE_API_PATH%
@if NOT "%ERRORLEVEL%"=="0" goto error
echo.
echo ----------------------------------------
echo Update DEV repository
echo ----------------------------------------
svn update "%SDK_SOURCE_FOLDER%"
@if NOT "%ERRORLEVEL%"=="0" goto error
svn update "%SDK_SOURCE_FOLDER%\..\OfficeWebCommon"
@if NOT "%ERRORLEVEL%"=="0" goto error
svn update "%SDK_SOURCE_FOLDER%\..\OfficeWebWord"
@if NOT "%ERRORLEVEL%"=="0" goto error
svn update "%SDK_SOURCE_FOLDER%\..\OfficeWebExcelChart"
@if NOT "%ERRORLEVEL%"=="0" goto error
echo.
echo ----------------------------------------
echo Copy THIRD PARTY scripts
echo ----------------------------------------
XCOPY "%SDK_TRDPARTY_PATH%\underscore\underscore-min.js" "%STABLE_TRDPARTY_PATH%\underscore\underscore-min.js" /Y /I /Q
XCOPY "%SDK_TRDPARTY_PATH%\xregexp\xregexp-all-min.js" "%STABLE_TRDPARTY_PATH%\xregexp\xregexp-all-min.js" /Y /I /Q
XCOPY "%SDK_TRDPARTY_PATH%\sockjs\sockjs-0.3.min.js" "%STABLE_TRDPARTY_PATH%\sockjs\sockjs-min.js" /Y /I /Q
echo.
echo ----------------------------------------
echo Copy API script
echo ----------------------------------------
XCOPY "%SDK_SOURCE_FOLDER%\api.js" "%STABLE_API_PATH%\api.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\apiDefines.js" "%STABLE_API_PATH%\apiDefines.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\view\EventsController.js" "%STABLE_API_PATH%\view\EventsController.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\view\HandlerList.js" "%STABLE_API_PATH%\view\HandlerList.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\model\AdvancedOptions.js" "%STABLE_API_PATH%\model\AdvancedOptions.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\model\CellInfo.js" "%STABLE_API_PATH%\model\CellInfo.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\model\DrawingObjects.js" "%STABLE_API_PATH%\model\DrawingObjects.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\css\*.css" "%STABLE_API_PATH%\css\" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\offlinedocs\*" "%STABLE_API_PATH%\offlinedocs\" /Y /I /Q /S
XCOPY "%SDK_SOURCE_FOLDER%\Spreadsheet.html.deploy" "%STABLE_API_PATH%\Spreadsheet.html" /Y /I /Q
echo "sdk-all.js was build from svn repository (see log below):" > %COMMIT_MESSAGE_FILE%
svn info %SDK_SOURCE_FOLDER% >> %COMMIT_MESSAGE_FILE%
echo.
echo ----------------------------------------
echo Build new version
echo ----------------------------------------
CALL build_sdk_all.bat %STABLE_SDK_JS% %STABLE_SDK_LOG_FOLDER%
@if NOT "%ERRORLEVEL%"=="0" goto error
if DEFINED SIMULATE goto finish
echo.
echo ----------------------------------------
echo Commit changes
echo ----------------------------------------
@echo on
rem svn commit %STABLE_API_PATH% -F %COMMIT_MESSAGE_FILE%
@echo off
:finish
del %COMMIT_MESSAGE_FILE%
echo.
echo Script finished successfully!
pause
exit /b 0
:error
pause
exit /b 1
@echo off
set CFG_FILE=config.txt
if EXIST "%CFG_FILE%" for /F "usebackq tokens=1,2 delims==" %%a in ("%CFG_FILE%") do set %%a=%%b
exit /b 0
@echo off
set CFG_FILE=config.txt
setlocal
set CFG_FILE_NEW=config.new.txt
set VAR_NAME=%~1
set VAR_VALUE=%~2
if NOT EXIST "%CFG_FILE%" (
echo ; Build Config>"%CFG_FILE%"
echo %VAR_NAME%=%VAR_VALUE%>>"%CFG_FILE%"
goto finish
)
echo ; Build Config>"%CFG_FILE_NEW%"
for /F "usebackq tokens=1,2 delims==" %%a in ("%CFG_FILE%") do (
if "%%a"=="%VAR_NAME%" (
echo %VAR_NAME%=%VAR_VALUE%>>"%CFG_FILE_NEW%"
set DONE=1
) else (
echo %%a=%%b>>"%CFG_FILE_NEW%"
)
)
if NOT DEFINED DONE echo %VAR_NAME%=%VAR_VALUE%>>"%CFG_FILE_NEW%"
del /q "%CFG_FILE%"
ren "%CFG_FILE_NEW%" "%CFG_FILE%"
:finish
endlocal
exit /b 0
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Unit Tests</title>
<script type="text/javascript" src="../jquery/jquery-1.7.1.js"></script>
<link rel="stylesheet" href="qunit/qunit-1.11.0.css" type="text/css" media="screen" />
<script type="text/javascript" src="qunit/qunit-1.11.0.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/3rdparty/XRegExp/xregexp-all.js"></script>
<script src="../OfficeWebCommon/downloaderfiles.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/3rdparty/Underscore/underscore-min.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/3rdparty/Sockjs/sockjs-0.3.min.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/docscoapicommon.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/docscoapi.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/Charts/DrawingObjects.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/Charts/charts.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/commonDefines.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/FontsFreeType/font_engine.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/FontsFreeType/FontFile.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/FontsFreeType/FontManager.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/WebWord/Drawing/Externals.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/WebWord/Drawing/Metafile.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/WebWord/Drawing/AllFonts.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/WebWord/Drawing/GlobalLoaders.js"></script>
<script type="text/javascript" src="../utils/utils.js"></script>
<script type="text/javascript" src="../model/clipboard.js"></script>
<script type="text/javascript" src="../model/autofilters.js"></script>
<script type="text/javascript" src="../graphics/DrawingContext.js"></script>
<script type="text/javascript" src="../graphics/pdfprinter.js"></script>
<!--TODO: remove test data-->
<script type="text/javascript" src="../offlinedocs/test-workbook9/Editor.js"></script>
<!-- <script type="text/javascript" src="../offlinedocs/empty-workbook.js"></script> -->
<script type="text/javascript" src="../model/CollaborativeEditing.js"></script>
<script type="text/javascript" src="../model/parserFormula.js"></script>
<script type="text/javascript" src="../model/CellComment.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/NumFormat.js"></script>
<script type="text/javascript" src="../model/Serialize.js"></script>
<script type="text/javascript" src="../model/WorkbookElems.js"></script>
<script type="text/javascript" src="../model/Workbook.js"></script>
<script type="text/javascript" src="../model/CellInfo.js"></script>
<script type="text/javascript" src="../model/AdvancedOptions.js"></script>
<script type="text/javascript" src="../model/History.js"></script>
<script type="text/javascript" src="../model/UndoRedo.js"></script>
<script type="text/javascript" src="../view/scroll.js"></script>
<script type="text/javascript" src="../view/StringRender.js"></script>
<script type="text/javascript" src="../view/CellTextRender.js"></script>
<script type="text/javascript" src="../view/CellEditorView.js"></script>
<script type="text/javascript" src="../view/WorksheetView.js"></script>
<script type="text/javascript" src="../view/HandlerList.js"></script>
<script type="text/javascript" src="../view/EventsController.js"></script>
<script type="text/javascript" src="../view/WorkbookView.js"></script>
<script type="text/javascript" src="../apiDefines.js"></script>
<script type="text/javascript" src="../api.js"></script>
<!--for theme-->
<script type="text/javascript" src="../../OfficeWebCommon/Shapes/EditorSettings.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/Shapes/Serialize.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/Shapes/SerializeWriter.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/WebWord/Editor/SerializeCommon.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/WebWord/Editor/GraphicObjects/ObjectTypes/Format.js"></script>
<script type="text/javascript" src="../../OfficeWebWord/WebWord/apiCommon.js"></script>
<!--for chart-->
<script type="text/javascript" src="../../OfficeWebCommon/SerializeCommonWordExcel.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.common.core.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.common.annotate.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.common.context.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.common.effects.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.common.key.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.common.resizing.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.common.tooltips.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.common.zoom.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.bar.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.bipolar.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.gantt.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.hbar.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.line.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.pie.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.radar.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.rose.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.rscatter.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.scatter.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.waterfall.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/OfficeExcel.chartProperties.js"></script>
<!--for colors-->
<script src="../../OfficeWebCommon/Charts/libraries/hsv.js"></script>
<script src="../../OfficeWebCommon/Charts/libraries/rgbcolor.js"></script>
<script type="text/javascript" src="FormulaTests.js"></script>
</head>
<body>
<h1 id="qunit-header">Parser Formulas tests</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Unit Tests</title>
<script type="text/javascript" src="../jquery/jquery-1.7.1.js"></script>
<link rel="stylesheet" href="qunit/qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="qunit/qunit.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/3rdparty/XregExp/xregexp-all.js"></script>
<script type="text/javascript" src="../utils/utils.js"></script>
<script type="text/javascript" src="../model/Workbook.js"></script>
<script type="text/javascript" src="../model/parserFormula.js"></script>
<script type="text/javascript" src="../model/NumFormat.js"></script>
<script type="text/javascript" src="CellFormatTests.js"></script>
</head>
<body>
<h1 id="qunit-header">Cell Format Lib Tests</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Unit Tests</title>
<script type="text/javascript" src="../jquery/jquery-1.7.1.js"></script>
<link rel="stylesheet" href="qunit/qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="qunit/qunit.js"></script>
<script type="text/javascript" src="../utils/utils.js"></script>
<script type="text/javascript" src="tests.js"></script>
</head>
<body>
<h1 id="qunit-header">Spreadsheets Tests</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>
/**
* QUnit v1.11.0 - A JavaScript Unit Testing Framework
*
* http://qunitjs.com
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
/** Font Family and Sizes */
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
}
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
#qunit-tests { font-size: smaller; }
/** Resets */
#qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
margin: 0;
padding: 0;
}
/** Header */
#qunit-header {
padding: 0.5em 0 0.5em 1em;
color: #8699a4;
background-color: #0d3349;
font-size: 1.5em;
line-height: 1em;
font-weight: normal;
border-radius: 5px 5px 0 0;
-moz-border-radius: 5px 5px 0 0;
-webkit-border-top-right-radius: 5px;
-webkit-border-top-left-radius: 5px;
}
#qunit-header a {
text-decoration: none;
color: #c2ccd1;
}
#qunit-header a:hover,
#qunit-header a:focus {
color: #fff;
}
#qunit-testrunner-toolbar label {
display: inline-block;
padding: 0 .5em 0 .1em;
}
#qunit-banner {
height: 15px;
}
#qunit-testrunner-toolbar {
padding: 0.5em 0 0.5em 2em;
color: #5E740B;
background-color: #eee;
overflow: hidden;
}
#qunit-userAgent {
padding: 0.5em 0 0.5em 2.5em;
background-color: #2b81af;
color: #fff;
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
}
#qunit-modulefilter-container {
float: right;
}
/** Tests: Pass/Fail */
#qunit-tests {
list-style-position: inside;
}
#qunit-tests li {
padding: 0.4em 0.5em 0.4em 2.5em;
border-bottom: 1px solid #fff;
list-style-position: inside;
}
#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
display: none;
}
#qunit-tests li strong {
cursor: pointer;
}
#qunit-tests li a {
padding: 0.5em;
color: #c2ccd1;
text-decoration: none;
}
#qunit-tests li a:hover,
#qunit-tests li a:focus {
color: #000;
}
#qunit-tests li .runtime {
float: right;
font-size: smaller;
}
.qunit-assert-list {
margin-top: 0.5em;
padding: 0.5em;
background-color: #fff;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
.qunit-collapsed {
display: none;
}
#qunit-tests table {
border-collapse: collapse;
margin-top: .2em;
}
#qunit-tests th {
text-align: right;
vertical-align: top;
padding: 0 .5em 0 0;
}
#qunit-tests td {
vertical-align: top;
}
#qunit-tests pre {
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
}
#qunit-tests del {
background-color: #e0f2be;
color: #374e0c;
text-decoration: none;
}
#qunit-tests ins {
background-color: #ffcaca;
color: #500;
text-decoration: none;
}
/*** Test Counts */
#qunit-tests b.counts { color: black; }
#qunit-tests b.passed { color: #5E740B; }
#qunit-tests b.failed { color: #710909; }
#qunit-tests li li {
padding: 5px;
background-color: #fff;
border-bottom: none;
list-style-position: inside;
}
/*** Passing Styles */
#qunit-tests li li.pass {
color: #5E740B;
background-color: #fff;
border-left: 26px solid #C6E746;
}
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
#qunit-tests .pass .test-name { color: #366097; }
#qunit-tests .pass .test-actual,
#qunit-tests .pass .test-expected { color: #999999; }
#qunit-banner.qunit-pass { background-color: #C6E746; }
/*** Failing Styles */
#qunit-tests li li.fail {
color: #710909;
background-color: #fff;
border-left: 26px solid #EE5757;
white-space: pre;
}
#qunit-tests > li:last-child {
border-radius: 0 0 5px 5px;
-moz-border-radius: 0 0 5px 5px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
}
#qunit-tests .fail { color: #000000; background-color: #ED6F6F; }
#qunit-tests .fail .test-name,
#qunit-tests .fail .module-name { color: #000000; }
#qunit-tests .fail .test-actual { color: #EE5757; }
#qunit-tests .fail .test-expected { color: green; }
#qunit-banner.qunit-fail { background-color: #EE5757; }
/** Result */
#qunit-testresult {
padding: 0.5em 0.5em 0.5em 2.5em;
color: #000000;
background-color: #D2E0E6;
font-size: 12pt;
font-weight: bold;
border-bottom: 1px solid white;
}
#qunit-testresult .module-name {
font-weight: bold;
}
/** Fixture */
#qunit-fixture {
position: absolute;
top: -10000px;
left: -10000px;
width: 1000px;
height: 1000px;
}
This diff is collapsed.
/**
* QUnit v1.7.0pre - A JavaScript Unit Testing Framework
*
* http://docs.jquery.com/QUnit
*
* Copyright (c) 2012 John Resig, Jörn Zaefferer
* Dual licensed under the MIT (MIT-LICENSE.txt)
* or GPL (GPL-LICENSE.txt) licenses.
*/
/** Font Family and Sizes */
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
}
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
#qunit-tests { font-size: smaller; }
/** Resets */
#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
margin: 0;
padding: 0;
}
/** Header */
#qunit-header {
padding: 0.5em 0 0.5em 1em;
color: #8699a4;
background-color: #0d3349;
font-size: 1.5em;
line-height: 1em;
font-weight: normal;
border-radius: 15px 15px 0 0;
-moz-border-radius: 15px 15px 0 0;
-webkit-border-top-right-radius: 15px;
-webkit-border-top-left-radius: 15px;
}
#qunit-header a {
text-decoration: none;
color: #c2ccd1;
}
#qunit-header a:hover,
#qunit-header a:focus {
color: #fff;
}
#qunit-header label {
display: inline-block;
padding-left: 0.5em;
}
#qunit-banner {
height: 15px;
}
#qunit-testrunner-toolbar {
padding: 0.5em 0 0.5em 2em;
color: #5E740B;
background-color: #eee;
}
#qunit-userAgent {
padding: 0.5em 0 0.5em 2.5em;
background-color: #2b81af;
color: #fff;
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
}
/** Tests: Pass/Fail */
#qunit-tests {
list-style-position: inside;
}
#qunit-tests li {
padding: 0.4em 0.5em 0.4em 2.5em;
border-bottom: 1px solid #fff;
list-style-position: inside;
}
#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
display: none;
}
#qunit-tests li strong {
cursor: pointer;
}
#qunit-tests li a {
padding: 0.5em;
color: #c2ccd1;
text-decoration: none;
}
#qunit-tests li a:hover,
#qunit-tests li a:focus {
color: #000;
}
#qunit-tests ol {
margin-top: 0.5em;
padding: 0.5em;
background-color: #fff;
border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
box-shadow: inset 0px 2px 13px #999;
-moz-box-shadow: inset 0px 2px 13px #999;
-webkit-box-shadow: inset 0px 2px 13px #999;
}
#qunit-tests table {
border-collapse: collapse;
margin-top: .2em;
}
#qunit-tests th {
text-align: right;
vertical-align: top;
padding: 0 .5em 0 0;
}
#qunit-tests td {
vertical-align: top;
}
#qunit-tests pre {
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
}
#qunit-tests del {
background-color: #e0f2be;
color: #374e0c;
text-decoration: none;
}
#qunit-tests ins {
background-color: #ffcaca;
color: #500;
text-decoration: none;
}
/*** Test Counts */
#qunit-tests b.counts { color: black; }
#qunit-tests b.passed { color: #5E740B; }
#qunit-tests b.failed { color: #710909; }
#qunit-tests li li {
margin: 0.5em;
padding: 0.4em 0.5em 0.4em 0.5em;
background-color: #fff;
border-bottom: none;
list-style-position: inside;
}
/*** Passing Styles */
#qunit-tests li li.pass {
color: #5E740B;
background-color: #fff;
border-left: 26px solid #C6E746;
}
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
#qunit-tests .pass .test-name { color: #366097; }
#qunit-tests .pass .test-actual,
#qunit-tests .pass .test-expected { color: #999999; }
#qunit-banner.qunit-pass { background-color: #C6E746; }
/*** Failing Styles */
#qunit-tests li li.fail {
color: #710909;
background-color: #fff;
border-left: 26px solid #EE5757;
white-space: pre;
}
#qunit-tests > li:last-child {
border-radius: 0 0 15px 15px;
-moz-border-radius: 0 0 15px 15px;
-webkit-border-bottom-right-radius: 15px;
-webkit-border-bottom-left-radius: 15px;
}
#qunit-tests .fail { color: #000000; background-color: #ED6F6F; }
#qunit-tests .fail .test-name,
#qunit-tests .fail .module-name { color: #000000; }
#qunit-tests .fail .test-actual { color: #EE5757; }
#qunit-tests .fail .test-expected { color: green; }
#qunit-banner.qunit-fail { background-color: #EE5757; }
/** Result */
#qunit-testresult {
padding: 0.5em 0.5em 0.5em 2.5em;
color: #000000;
background-color: #D2E0E6;
font-size: 12pt;
font-weight: bold;
border-bottom: 1px solid white;
}
#qunit-testresult .module-name {
font-weight: bold;
}
/* span.passed{
color: green;
}
span.failed{
color:red;
} */
/** Fixture */
#qunit-fixture {
position: absolute;
top: -10000px;
left: -10000px;
width: 1000px;
height: 1000px;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Unit Test</title>
<script type="text/javascript" src="../jquery/jquery-1.7.1.js"></script>
<link rel="stylesheet" href="qunit/qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="qunit/qunit.js"></script>
<script type="text/javascript" src="../../OfficeWebCommon/3rdparty/XregExp/xregexp-all.js"></script>
<script type="text/javascript" src="../utils/utils.js"></script>
<script type="text/javascript" src="../model/Workbook.js"></script>
<script type="text/javascript" src="../model/parserFormula.js"></script>
<script type="text/javascript" src="../model/NumFormat.js"></script>
<script type="text/javascript" src="testsForFWB.html.js"></script>
</head>
<body>
<h1 id="qunit-header">Spreadsheets Tests</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.6
*
* Requires: 1.2.2+
*/
(function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment