Revision: da2b7c547f88
Author:   Janne Härkönen <[email protected]>
Date:     Tue Jun 21 02:43:37 2011
Log:      dead code
http://code.google.com/p/robotframework/source/detail?r=da2b7c547f88

Modified:
 /src/robot/webcontent/testdata.js
 /utest/webcontent/spec/ParsingSpec.js

=======================================
--- /src/robot/webcontent/testdata.js   Tue Jun 21 01:35:44 2011
+++ /src/robot/webcontent/testdata.js   Tue Jun 21 02:43:37 2011
@@ -284,11 +284,6 @@
     function errors() {
         return util.map(window.output.errors, message);
     }
-
-    // TODO: Is this used anymore?
-    function error(index) {
-        return errors()[index];
-    }

     function statistics() {
         if (!_statistics) {
@@ -301,7 +296,6 @@
     return {
         suite: suite,
         errors: errors,
-        error: error,
         find: findById,
         pathToTest: pathToTest,
         pathToSuite: pathToSuite,
=======================================
--- /utest/webcontent/spec/ParsingSpec.js       Tue Jun 21 00:56:46 2011
+++ /utest/webcontent/spec/ParsingSpec.js       Tue Jun 21 02:43:37 2011
@@ -267,8 +267,8 @@
     });

     it("should show warning in errors", function () {
-        expectMessage(window.testdata.error(0), "warning", "warn");
- expect(window.testdata.error(0).link).toEqual("keyword_Verysimple.Test.2");
+        expectMessage(window.testdata.errors()[0], "warning", "warn");
+ expect(window.testdata.errors()[0].link).toEqual("keyword_Verysimple.Test.2");
     });
 });

Reply via email to