Commit 0d4c6744 authored by konovalovsergey's avatar konovalovsergey

Defined names cycle: clean up

parent 00f4dea1
......@@ -491,18 +491,22 @@ $( function () {
test( "Test: \"Defined names cycle\"", function () {
var newName = new Asc.asc_CDefName("q", "SUM('"+ws.getName()+"'!A2)");
wb.editDefinesNames(null, newName);
var newNameQ = new Asc.asc_CDefName("q", "SUM('"+ws.getName()+"'!A2)");
wb.editDefinesNames(null, newNameQ);
ws.getRange2( "Q1" ).setValue( "=q" );
ws.getRange2( "Q2" ).setValue( "=q" );
ws.getRange2( "Q3" ).setValue( "1" );
strictEqual( ws.getRange2( "Q1" ).getValueWithFormat(), "1" );
strictEqual( ws.getRange2( "Q2" ).getValueWithFormat(), "1" );
var newName = new Asc.asc_CDefName("w", "'"+ws.getName()+"'!A1");
wb.editDefinesNames(null, newName);
var newNameW = new Asc.asc_CDefName("w", "'"+ws.getName()+"'!A1");
wb.editDefinesNames(null, newNameW);
ws.getRange2( "Q4" ).setValue( "=w" );
strictEqual( ws.getRange2( "Q4" ).getValueWithFormat(), "#REF!" );
//clean up
ws.getRange2( "Q1:Q4" ).cleanAll();
wb.delDefinesNames(newNameW);
wb.delDefinesNames(newNameQ);
});
test( "Test: \"Parse intersection\"", function () {
......
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