Get a concise introduction to Jasmine, the popular behavior-driven testing framework for javascript. This practical guide shows you how to write unit tests with Jasmine that automatically check for bugs in your applic...
详细信息
ISBN:
(纸本)1449356370;9781449356378
Get a concise introduction to Jasmine, the popular behavior-driven testing framework for javascript. This practical guide shows you how to write unit tests with Jasmine that automatically check for bugs in your application. Learn how to write specifications for individual components, and then use those specs to test the code you *** the book, author Evan Hahn focuses primarily on methods for testing browser-based javascript applications, but youll also discover how to use Jasmine with CoffeeScript, ***, Ruby on Rails, and Ruby without Rails. You wont find a more in-depth source for Jasmine *** an overview of both test-driven and behavior-driven development Write useful specs by determining what you need to testand what you dont Test the behavior of new and existing code against the specs you create Apply Jasmine matchers and discover how to build your own Organize code suites into groups and subgroups as your code becomes more complex Use a Jasmine spy in place of a function or an objectand learn why its valuable
The burgeoning distribution of smartphone web applications based on various mobile environments is increasingly focusing on the performance of mobile applications implemented by javascript and HTML5 (Hyper Text Markup...
详细信息
The burgeoning distribution of smartphone web applications based on various mobile environments is increasingly focusing on the performance of mobile applications implemented by javascript and HTML5 (Hyper Text Markup Language 5). If application software has a simple functional processing structure, then the problem is benign. However, browser loads are becoming more burdensome as the amount of javascript processing continues to increase. Processing time and capacity of the javascript in current mobile browsers are limited. As a solution, the Web Worker is designed to implement multi-threading. However, it cannot guarantee the computing ability as a native application on mobile devices, and is not sufficient to improve processing speed. The method proposed in this research overcomes the limitation of resources as a mobile client and guarantees performance by native application software by providing high computing service. It shifts the javascript process of a mobile device on to a cloud-based computer server. A performance evaluation experiment revealed the proposed algorithm to be up to 6 times faster in computing speed compared to the existing mobile browser's javascript process, and 3 to 6 times faster than Web Worker. In addition, memory usage was also less than the existing technology.
Your comprehensive and practical guide to efficiently performing and automating javascript unit testing. Overview Learn and understand, using practical examples, synchronous and asynchronous javascript unit testing. C...
详细信息
ISBN:
(数字)9781782160632
ISBN:
(纸本)1782160620
Your comprehensive and practical guide to efficiently performing and automating javascript unit testing. Overview Learn and understand, using practical examples, synchronous and asynchronous javascript unit testing. Cover the most popular javascript Unit Testing Frameworks including Jasmine, YUITest, QUnit, and JsTestDriver. Automate and integrate your javascript Unit Testing for ease and efficiency. In Detail The largest challenge for many developers' day to day life is ensuring the support of, and assuring the reach of, their product. With the ever increasing number of mainstream web browsers this is becoming a more difficult task for javascript coders. From the beginning, javascript Unit Testing will show you how to reduce the time you spend testing, and automate and ensure efficiency in guaranteeing your success. javascript Unit Testing will introduce and help you master the art of efficiently performing and automating javascript Unit tests for your web applications. Using the most popular javascript unit testing frameworks, you will develop, integrate, and automate all the tests you need to ensure the widest reach and success of your web application. Covering the most popular javascript Unit testing frameworks of today, javascript Unit Testing is your bible to ensuring the functionality and success of all of your javascript and Ajax Web Applications. Starting with Jasmine, you will also learn about, and use, YUITest, QUnit, and JsTestDriver, integrate them into your projects, and use them together to generate reports. Learn to automate these tools, make them work for you, and include the power of these tools in your projects from day one. What you will learn from this book Learn and use the power of Jasmine, YUITest, QUnit, and JsTestDriver. Learn by doing to synchronously and asynchronously test your javascript applications. Automate your javascript tests using both Build and Integration Management Tools. Generate test reports for your javascript tests. Custom
This paper presents a new software framework, SAMPO-UI, for developing user interfaces for semantic portals. The goal is to provide the end-user with multiple application perspectives to Linked Data knowledge graphs, ...
详细信息
This paper presents a new software framework, SAMPO-UI, for developing user interfaces for semantic portals. The goal is to provide the end-user with multiple application perspectives to Linked Data knowledge graphs, and a two-step usage cycle based on faceted search combined with ready-to-use tooling for data analysis. For the software developer, the SAMPO-UI framework makes it possible to create highly customizable, user-friendly, and responsive user interfaces using current state-of-the-art javascript libraries and data from SPARQL endpoints, while saving substantial coding effort. SAMPO-UI is published on GitHub under the open MIT License and has been utilized in several internal and external projects. The framework has been used thus far in creating six published and five forth-coming portals, mostly related to the Cultural Heritage domain, that have had tens of thousands of end-users on the Web.
This paper presents the concept of javascript Application Framework (JSAF) which is a Platform Independent Model (PIM). This Paper aims at developing an application framework using web developing languages which suppo...
详细信息
ISBN:
(纸本)9783642292187
This paper presents the concept of javascript Application Framework (JSAF) which is a Platform Independent Model (PIM). This Paper aims at developing an application framework using web developing languages which supports the usage on all platforms making it easy for the developers to use the application framework to develop applications. JSAF is used for creating applications for Mobile Devices which supports a Browser which can render advanced web developing languages such as javascript, HTML5 and CSS3. The JSAF provides all the basic User-Interface (UI) widgets required for the Application Development to the Application developer. The JSAF Application is rendered on a Browser which will load JSAF framework prior to the Application. javascript Application Framework has the Multitasking feature and Cross Application Communication feature. javascript Application Framework is developed at Samsung India Software Operations and proprietary.
Why reinvent the wheel every time you run into a problem with javascript? This cookbook is chock-full of code recipes that address common programming tasks, as well as techniques for building web apps that work in any...
详细信息
ISBN:
(纸本)0596806132;9780596806132
Why reinvent the wheel every time you run into a problem with javascript? This cookbook is chock-full of code recipes that address common programming tasks, as well as techniques for building web apps that work in any browser. Just copy and paste the code samples into your project -- youll get the job done faster and learn more about javascript in the process. You'll also learn how to take advantage of the latest features in ECMAScript 5 and HTML5, including the new cross-domain widget communication technique, HTML5's video and audio elements, and the drawing canvas. You'll find recipes for using these features with javascript to build high-quality application interfaces. Create interactive web and desktop applications Work with javascript objects, such as String, Array, Number, and Math Use javascript with Scalable Vector Graphics (SVG) and the canvas element Store data in various ways, from the simple to the complex Program the new HTML5 audio and video elements Implement concurrent programming with Web Workers Use and create jQuery plug-ins Use ARIA and javascript to create fully accessible rich internet applications
This task-based, visual-reference guide has been fully revised and uses step-by-step instructions and plenty of screenshots to give beginning and intermediate scripters what they need to know to keep their skills up-t...
详细信息
ISBN:
(纸本)9780321772978
This task-based, visual-reference guide has been fully revised and uses step-by-step instructions and plenty of screenshots to give beginning and intermediate scripters what they need to know to keep their skills up-to-date. Readers can start from the beginning to get a tour of the programming language, or look up specific tasks to learn just what they need to know. In this updated eighth edition, readers will find new information on using frameworks and libraries--such as jQuery--and modern coding techniques.
javascript is a powerful imperative object based language made popular by its use in web pages. It supports flexible program development by allowing dynamic addition of members to objects. Code is dynamically typed: a...
详细信息
javascript is a powerful imperative object based language made popular by its use in web pages. It supports flexible program development by allowing dynamic addition of members to objects. Code is dynamically typed: a runtime access to a non-existing member causes an error. We suggest a static type system for javascript that will detect such type errors. Therefore, programmers can benefit from the flexible programming style offered by javascript and from the safety offered by a static type system. We demonstrate our type system with a formalism of javascript, JS(0). Our types are structural. Members of an object type are classified into definite and potential. A potential member becomes definite upon assignment. We outline a proof that our type system is sound.
In javascript programs, asynchrony arises in situations such as web-based user-interfaces, communicating with servers through HTTP requests, and non-blocking I/O. Event-based programming is the most popular approach f...
详细信息
In javascript programs, asynchrony arises in situations such as web-based user-interfaces, communicating with servers through HTTP requests, and non-blocking I/O. Event-based programming is the most popular approach for managing asynchrony, but suffers from problems such as lost events and event races, and results in code that is hard to understand and debug. Recently, ECMAScript 6 has added support for promises, an alternative mechanism for managing asynchrony that enables programmers to chain asynchronous computations while supporting proper error handling. However, promises are complex and error-prone in their own right, so programmers would benefit from techniques that can reason about the correctness of promise-based code. Since the ECMAScript 6 specification is informal and intended for implementers of javascript engines, it does not provide a suitable basis for formal reasoning. This paper presents lambda(p), a core calculus that captures the essence of ECMAScript 6 promises. Based on lambda(p), we introduce the promise graph, a program representation that can assist programmers with debugging of promise-based code. We then report on a case study in which we investigate how the promise graph can be helpful for debugging errors related to promises in code fragments posted to the StackOverflow website.
Background: The way we look at data has a great impact on how we can understand it, particularly when the data is related to health and wellness. Due to the increased use of self-tracking devices and the ongoing shift...
详细信息
Background: The way we look at data has a great impact on how we can understand it, particularly when the data is related to health and wellness. Due to the increased use of self-tracking devices and the ongoing shift towards preventive medicine, better understanding of our health data is an important part of improving the general welfare of the citizens. Electronic Health Records, self-tracking devices and mobile applications provide a rich variety of data but it often becomes difficult to understand. We implemented the hFigures library inspired on the hGraph visualization with additional improvements. The purpose of the library is to provide a visual representation of the evolution of health measurements in a complete and useful manner. Results: We researched the usefulness and usability of the library by building an application for health data visualization in a health coaching program. We performed a user evaluation with Heuristic Evaluation, Controlled User Testing and Usability Questionnaires. In the Heuristics Evaluation the average response was 6.3 out of 7 points and the Cognitive Walkthrough done by usability experts indicated no design or mismatch errors. In the CSUQ usability test the system obtained an average score of 6.13 out of 7, and in the ASQ usability test the overall satisfaction score was 6.64 out of 7. Conclusions: We developed hFigures, an open source library for visualizing a complete, accurate and normalized graphical representation of health data. The idea is based on the concept of the hGraph but it provides additional key features, including a comparison of multiple health measurements over time. We conducted a usability evaluation of the library as a key component of an application for health and wellness monitoring. The results indicate that the data visualization library was helpful in assisting users in understanding health data and its evolution over time.
暂无评论