jjzjj

expectations

全部标签

c# - "Value Does not fall in the expected range"ClickOnce部署

我已经使用了几个月的ClickOnce应用程序,但最近开始在部署最新版本时出现错误。在这个最新版本中,我添加了对我以前从未使用过的DLL的引用(FTD2XX_NET.dll如果相关),并怀疑这与问题有关,但我不知道如何解决它。正在部署的实际项目引用了另一个库项目,它引用了DLL(它引用了其他DLL,但已经工作了几个月而且它们没有改变)。正在关注thesethreads我尝试删除我的“本地设置/应用程序”文件夹并多次重启,以及重新创建项目并部署到不同的位置。该错误存在于多台机器上,所以我不怀疑它是用户配置文件损坏。这是我得到的完整错误:PLATFORMVERSIONINFOWindows

javascript - 火力地堡存储 : "Invalid argument in put at index 0: Expected Blob or File

我不断收到Invalidargumentinputatindex0:ExpectedBloborFile错误。有趣的是参数完全是一个文件...代码如下:varfile=document.getElementById('cke_69_fileInput').contentWindow.document.getElementById('cke_69_fileInput_input').files[0];varstorageUrl='noticias/imagenes/';varstorageRef=firebase.storage().ref(storageUrl+file.name);c

javascript - 脚本 1010 : Expected identifier in IE10

在我的项目中,我使用PrototypeJavaScriptFramework1.7.1当我在Windows7的IE10中加载网页时,出现以下错误消息:SCRIPT1010:预期标识符第1行第9个字符指向在我下面的测试HTML页面中:MywebpagetitlejusttestingHTTP请求头GET/test.htmlHTTP/1.1[CRLF]Host:www.mydomain.com[CRLF]Connection:close[CRLF]User-Agent:Web-sniffer/1.0.44(+http://web-sniffer.net/)[CRLF]Accept-Enco

javascript - 为什么在使用 QUnit 编写测试时我会使用 expect()?

我最近开始使用QUnit对我的JavaScript进行单元测试,我对文档中的一个特性感到有点困惑:expect()。根据文档,expect()旨在:[s]pecifyhowmanyassertionsareexpectedtorunwithinatest.这是他们给出的例子:test("atest",function(){expect(2);functioncalc(x,operation){returnoperation(x);}varresult=calc(2,function(x){ok(true,"calc()callsoperationfunction");returnx*x

javascript - react .createElement : type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object

预计我应该能够导出我的App组件文件并将其导入到我的index.js中。结果出现以下错误React.createElement:typeisinvalid--expectedastring(forbuilt-incomponents)oraclass/function(forcompositecomponents)butgot:object我的index.jsconstReact=require('react');constReactDOM=require('react-dom');constApp=require('./components/App');require('./inde

javascript - 错误 : <rect> attribute width: Expected length, "NaN"。和 <text> 属性 dx : Expected length, "NaN"

我想在D3中实现一个条形图,但是我在dx轴上的值是Date类型,D3库应该接受的数据类型,但它似乎给我这样的错误:attributewidth:Expectedlength,“南”。这是我的代码:abargraph.axispath,.axisline{fill:none;stroke:black;shape-rendering:crispEdges;}.axistext{font-family:sans-serif;font-size:11px;}.MyRect{fill:steelblue;}.MyText{fill:white;text-anchor:middle;}varwid

javascript - Angular 7 "expected ' 样式'为字符串数组"

我正在尝试运行我的服务器并在localhost:8000上加载我的app.component.html。相反,我收到了这个错误compiler.js:7992UncaughtError:Expected'styles'tobeanarrayofstrings.atassertArrayOfStrings(compiler.js:7992)at>CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.j>s.CompileMetadataResolver.getNonNormalizedDi

javascript - 如何通过 expect.js async done() 出错的测试?

Mocha网站声明:“为了让事情变得更简单,done()回调接受一个错误,所以我们可以直接使用它:[参见他们的例子]”那么让我们试试看:it('works',function(done){expect(1).to.be(1)done(newError('expectederror'))})/*Inserttheerrormanuallyfortestingandclarity.*/运行它并:1failing1)works:Error:expectederroratContext.[stacktrace]当错误响应是期望的结果时,我们如何使测试通过? 最佳答案

javascript - ngAnnotate - 警告 : StringMap expected string key

我在使用Grunt和grunt-ng-annotate时收到此警告。警告中没有提到错误在文件中的位置,这使得调试变得困难。有什么想法吗? 最佳答案 问题原来是使用ES6符号,在本例中是箭头函数(=>)、默认参数和let。我没有详细了解为什么ngAnnotate不支持这个。为了找到问题出在哪里,我用gruntswitch--force覆盖了ngAnnotate警告,后来在构建uglify中提示了ES6语法的更多细节。 关于javascript-ngAnnotate-警告:StringMap

javascript - Angular 错误 : [filter:notarray] Expected array but received: {} with a filter on an ng-repeat

我正在尝试使用ng-repeat指令使用对API的Angular请求来填充html表。首先加载html页面,然后请求获取返回响应时填充表格的数据。当我向ng-repeat指令添加过滤器时,表格被填充并且过滤器起作用,但是在我的chrome浏览器控制台中,我收到以下错误:Error:[filter:notarray]Expectedarraybutreceived:{}http://errors.angularjs.org/1.4.3/filter/notarray?p0=%7B%7DatREGEX_STRING_REGEXP(angular.js:68)atangular.js:182