From 585c8b3aff3c54dd06b74f9f7ca19532a476892a Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 24 Oct 2017 14:58:11 +0200 Subject: [PATCH] add analysis test --- test-browser/tests/staticanalysis.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test-browser/tests/staticanalysis.js b/test-browser/tests/staticanalysis.js index d0174ddfa1..8d031d8c6e 100644 --- a/test-browser/tests/staticanalysis.js +++ b/test-browser/tests/staticanalysis.js @@ -11,7 +11,11 @@ contract test1 { address test = tx.origin; } contract test2 {} contract TooMuchGas { uint x; - function() { x++; } + function() { + x++; + uint test; + uint test1; + } }`} ] @@ -38,7 +42,8 @@ function runTests (browser) { .click('#staticanalysisView button') .waitForElementPresent('#staticanalysisresult .warning', 2000, true, function () { dom.listSelectorContains(['browser/Untitled.sol:2:33: Use of tx.origin', - 'Fallback function of contract browser/Untitled.sol:TooMuchGas requires too much gas'], + 'Fallback function of contract browser/Untitled.sol:TooMuchGas requires too much gas', + 'TooMuchGas.(): Variables have very similar names test and test1.'], '#staticanalysisresult .warning', browser, function () { browser.end()