[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 9bda61f 050/316: (cit-symref-qui
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 9bda61f 050/316: (cit-symref-quick-find-test): New. (cit-symref-count): Add a small wait of .1. |
Date: |
Fri, 27 Jan 2017 20:03:26 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 9bda61f2e7ae88a2fe036053553c997602880c75
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>
(cit-symref-quick-find-test): New. (cit-symref-count): Add a small wait of
.1.
---
test/manual/cedet/cit-symref.el | 69 ++++++++++++++++++++++++---------------
1 file changed, 43 insertions(+), 26 deletions(-)
diff --git a/test/manual/cedet/cit-symref.el b/test/manual/cedet/cit-symref.el
index e24ae48..beb095d 100644
--- a/test/manual/cedet/cit-symref.el
+++ b/test/manual/cedet/cit-symref.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2010 Eric M. Ludlam
;;
;; Author: Eric M. Ludlam <address@hidden>
-;; X-RCS: $Id: cit-symref.el,v 1.1 2010-04-18 00:33:36 zappo Exp $
+;; X-RCS: $Id: cit-symref.el,v 1.2 2010-06-13 01:12:27 zappo Exp $
;;
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@@ -32,36 +32,53 @@
(defun cit-symref ()
"Test the symref tool."
- ;; Start in a C++ file.
- (find-file (cit-file "src/main.cpp"))
+ (save-excursion
+ ;; Start in a C++ file.
+ (find-file (cit-file "src/main.cpp"))
- (let* ((target (car cit-symref-operations))
- (dest (car (cdr cit-symref-operations)))
- )
- ;; 7 - Run the symref tool
- ;; Create the UI
- (semantic-symref-symbol target)
- (cit-symref-count '(2 3 0 0))
+ (let* ((target (car cit-symref-operations))
+ (dest (car (cdr cit-symref-operations)))
+ )
+ ;; 7 - Run the symref tool
+ ;; Create the UI
+ (semantic-symref-symbol target)
+ (cit-symref-count '(2 3 0 0))
- ;; expand them all
- (semantic-symref-list-expand-all)
- (cit-symref-count '(2 3 4 0))
+ ;; expand them all
+ (semantic-symref-list-expand-all)
+ (cit-symref-count '(2 3 4 0))
- ;; Perform a rename.
- (semantic-symref-list-rename-open-hits dest)
- (save-some-buffers t)
- (cit-symref-count '(2 3 4 0))
+ ;; Perform a rename.
+ (semantic-symref-list-rename-open-hits dest)
+ (save-some-buffers t)
+ (cit-symref-count '(2 3 4 0))
- ;; Create a new symref buffer!
- (find-file (cit-file "src/main.cpp"))
- (semantic-symref-symbol dest)
- (cit-symref-count '(2 3 0 0))
+ ;; Create a new symref buffer!
+ (find-file (cit-file "src/main.cpp"))
+ (semantic-symref-symbol dest)
+ (cit-symref-count '(2 3 0 0))
- ;; Compile and run the refactored code.
- (find-file (cit-file "src/main.cpp"))
- (cit-compile-and-wait)
+ ;; Compile and run the refactored code.
+ (find-file (cit-file "src/main.cpp"))
+ (cit-compile-and-wait)
+ (find-file (cit-file "src/main.cpp"))
+ (cit-run-target "./Prog")
+ )))
+
+(defun cit-symref-quick-find-test ()
+ "Test symref finding something, but not the more detailed test."
+ (save-excursion
+ ;; Start in a C++ file.
(find-file (cit-file "src/main.cpp"))
- (cit-run-target "./Prog")
+
+ ;; Force new detection for every test.
+ (setq semantic-symref-tool 'detect)
+
+ ;; 7 - Run the symref tool
+ ;; Create the UI
+ (semantic-symref-regexp "doSomethingPublic")
+
+ (cit-symref-count '(3 3 0 0))
))
(defun cit-symref-count (expected)
@@ -69,7 +86,7 @@
Argument EXPECTED is the expected result count."
(save-excursion
(goto-char (point-min))
- (sit-for 0)
+ (sit-for .1)
(let ((files 0)
(hits 0)
(res 0)
- [Emacs-diffs] scratch/merge-cedet-tests e4ea343 033/316: Merge from 1.0pre6 branch, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests e4ea343 033/316: Merge from 1.0pre6 branch, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests b13b432 031/316: (LOADPATH): Add contrib. (Misc): New (dist): Add Misc, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 42e1106 034/316: (Lisp_LISP): Add cit-uml.el (Misc_MISC): Add cit-uml.cgr, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 115a9d4 038/316: (Lisp_LISP): Add cit-symref.el, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 467bfc2 036/316: (ELISPPRELOAD): New (Lisp): Use preloads., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 924fef0 039/316: (Lisp_LISP): Add cit-externaldb.el, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 1d79c16 042/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 00080fd 043/316: Validate project overrides, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9a436ca 047/316: (func): Add local8 with a ternary conditional., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 1c4ec31 045/316: Add test for parsing local variables, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9bda61f 050/316: (cit-symref-quick-find-test): New. (cit-symref-count): Add a small wait of .1.,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 75c52c3 055/316: (ms_structs, fun): New test example from Marting Stein., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests f38d3d0 041/316: SRecoder feature testing., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e915cb9 035/316: (LOADPATH): Add cogre to the load path., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d8b5630 060/316: Patch from Marcus Harnisch, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d4d1014 061/316: Add -f toggle-debug-on-quit flag, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c9de94f 064/316: * cit-test.sh: Add support for running in batch mode., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d8f7f9c 066/316: * tests/cit-test.sh: Fix filename for integration test., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6f0f898 065/316: * cedet-load.el: Load cogre autoloads., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 8e1fe2d 067/316: Accept any potential project directory during testing, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 83c8dc0 068/316: Use random temporary directory for integration tests, Edward John Steere, 2017/01/27