沿莫代尔移动不工作(Move along Modal dont' work)
我试图沿着我创建的模态div移动,但不工作。
检查我的脚本jquery:
<script> $("#mytabs").on('click',function() { $(this).tab('show'); }); </script>
HTML / Botstrap:
<div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <!-- <button type="button" class="close" data-dismiss="modal">×</button> !--> <h4 class="modal-title">Authentication</h4> </div> <div class="modal-body"> <ul class="nav nav-tabs" id="myTab"> <span data-toggle="modal" data-target="#mymodal" class="cssbuttongo">Login</span> <span data-toggle="modal" data-target="#mymodal" class="cssbuttongo">Register</span> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="LoginTab"> ...... <div class="tab-pane" id="RegistrationTab">
I'm trying to move along the modal divs i have created but don't work.
Check my script for jquery:
<script> $("#mytabs").on('click',function() { $(this).tab('show'); }); </script>
html/Botstrap:
<div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <!-- <button type="button" class="close" data-dismiss="modal">×</button> !--> <h4 class="modal-title">Authentication</h4> </div> <div class="modal-body"> <ul class="nav nav-tabs" id="myTab"> <span data-toggle="modal" data-target="#mymodal" class="cssbuttongo">Login</span> <span data-toggle="modal" data-target="#mymodal" class="cssbuttongo">Register</span> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="LoginTab"> ...... <div class="tab-pane" id="RegistrationTab">
原文:https://stackoverflow.com/questions/48127204
更新时间:2023-10-14 08:10
最满意答案
如果您使用Visual Studio,则可以在解决方案中添加对项目的引用,如此处引用测试项目中的控制台应用程序
If you're using Visual Studio you can add references to Projects within the solution as here referencing a console application from a test project
相关问答
更多-
在玩引用时,我注意到无论我从列表中选择什么NUnit框架,当我关闭项目属性窗口并再次打开它时,我看到了对可移植 NUnit框架的引用。 解决方案管理器中引用列表中的工具提示还显示包含单词“portable”的路径。 并且看起来这个可移动框架有些东西是测试运行者不喜欢的。 由于我不需要这个可移植框架,我试图专门添加4.5框架。 它没用。 无论我选择什么,便携式框架都会弹出! 所以我决定采用简单的方法并卸载NUnit,然后使用“自定义”安装重新安装它,并取消选择可移植框架。 像魅力一样工作! 现在,当我添加NU ...
-
通常,单元测试涉及到一个类的公共接口,只要从客户端的角度来看,结果是正确的,实现是无关紧要的。 因此,NUnit不提供测试非公开成员的任何机制。 Generally, unit testing addresses a class's public interface, on the theory that the implementation is immaterial, so long as the results are correct from the client's point of view. ...
-
好,我知道了... 我没有单个* .nunit项目文件,而是每个测试程序集都需要一个* .config文件。 这样配置将始终加载。 Ok I got it... Instead of having a single *.nunit project file I need to have a *.config file per tests assembly. This way the configuration will be always loaded.
-
如果您使用Visual Studio,则可以在解决方案中添加对项目的引用,如此处引用测试项目中的控制台应用程序 If you're using Visual Studio you can add references to Projects within the solution as here referencing a console application from a test project
-
在MonoDevelop 2.4中使用NUnit测试Monotouch应用程序(Testing a Monotouch app with NUnit in MonoDevelop 2.4)[2022-04-25]
如果您错过了它,现在有一个可用于MonoTouch的NUnitLite运行器,它适用于UI不可知代码并在设备(或模拟器)上执行。 请参阅: 适用于iOS的.NET单元测试运行器 In case you missed it, there is now a NUnitLite runner available for MonoTouch which is designed to work for UI agnostic code and executed on devices (or simulator). S ... -
Nunit - 测试exe(Nunit - testing exe)[2023-09-01]
检查是要测试的类的可访问性。 他们必须被标记为公开的,否则你的测试项目将无法看到他们加载它们。 让您的类公开的另一种方法是在EXE中使用InternalsVisibleTo属性,并授予对测试项目DLL的访问权限。 而不是公开的,你只需要将它们标记为内部。 在EXE的AssemblyInfo.cs中: [assembly: InternalsVisibleTo( "Project.Tests" )] 引用EXE而不是用于测试的DLL没有问题(从技术上讲,反正应用程序架构是另一回事) Check is t ... -
NUnit扩展无法通过NUnit GUI运行测试(NUnit extension does not work running tests through the NUnit GUI)[2023-08-29]
好的,现在我知道问题是什么。 在64位计算机上,如果要使用NUnit GUI,则必须使用nunit-x86.exe程序; 如果你想在运行NUnit GUI时使用你的扩展,那么它需要3个特定的DLL( nunit.core.dll , nunit.core.interfaces.dll , nunit.util.dll )位于C:\Program Files(x86)\NUnit2.6.4\...的lib文件夹中C:\Program Files(x86)\NUnit2.6.4\... 这3个DLL与在Visu ... -
最后解决了这个问题,这是我自己的愚蠢错误。 感谢DevOps建议通过MSBuild日志,它帮助我找到了问题。 实际的DLL没有被检入源代码控制,因为添加测试项目的开发机器有一个全局忽略文件来忽略所有DLL。 所以我认为它就在那里,但它只是.xml文件,我误读了它。 无论如何,它现在构建并运行测试。 感谢大家的帮助 Finally fixed the issue and it was my own stupid mistake. Thanks to DevOps for suggesting going th ...
-
使用NUnit进行调试(Debugging with NUnit)[2021-11-04]
调试 - >例外。 检查“Thrown”以查找要中断的异常类(可能是“Common Language Runtime Exceptions”)。 Debug->Exceptions. Check "Thrown" for the class of exceptions that you want to break on (likely "Common Language Runtime Exceptions"). -
运行NUnit 3测试有各种不同的方法...... 首先,教程说从VS可以进入测试 - > Windows - >测试资源管理器来运行测试。 要使其工作,您需要安装“NUnit3测试适配器”。 通过Visual Studio中的“ Tools>Extensions and Updates进行安装。 确保获得v3适配器而不是v2适配器 - 它们是单独的扩展。 其次,v3没有GUI,所以这是不可能的。 目前正在开发中! 跟着它的进展: 这里 第三,教程提到了NUnit的控制台版本。 这可能是最常规的方法。 控制 ...